Skip to content

Commit

Permalink
stop responding to commands when format is happening
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Feb 13, 2024
1 parent 736da92 commit 1a47cd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/fxsupport/linux/resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ stop_services() {
echo "Fula service stopped..."
sudo systemctl stop uniondrive.service
echo "uniondrive service stopped..."
sudo systemctl stop commands.service
echo "commands service stopped..."
services_stopped=1
fi
}
Expand All @@ -29,6 +31,9 @@ start_services() {
echo "uniondrive service started..."
sudo systemctl start fula.service
echo "fula service started..."
sudo rm -rf "$HOME_DIR/commands/*"
sudo systemctl start commands.service
echo "commands service stopped..."
if [ -f $HOME_DIR/control_led.per ]; then
sudo rm $HOME_DIR/control_led.per
fi
Expand Down

0 comments on commit 1a47cd1

Please sign in to comment.