Minor fixes

This commit is contained in:
Dmitri Popov
2018-03-22 16:51:51 +01:00
parent 3e85c189a7
commit 2c6872dbe0
2 changed files with 6 additions and 5 deletions

View File

@@ -81,6 +81,7 @@ if [ ! -z $CARD_READER ]; then
# Turn off the ACT LED to indicate that the backup is completed # Turn off the ACT LED to indicate that the backup is completed
sudo sh -c "echo 0 > /sys/class/leds/led0/brightness" sudo sh -c "echo 0 > /sys/class/leds/led0/brightness"
fi fi
# Shutdown # Shutdown
sync sync
shutdown -h now shutdown -h now

View File

@@ -48,12 +48,12 @@ sudo shutdown -c
sudo sh -c "echo timer > /sys/class/leds/led0/trigger" sudo sh -c "echo timer > /sys/class/leds/led0/trigger"
sudo sh -c "echo 1000 > /sys/class/leds/led0/delay_on" sudo sh -c "echo 1000 > /sys/class/leds/led0/delay_on"
# Perform backup using rsync # Perform backup using rsync
rsync -av $SOURCE_DIR $STORAGE_MOUNT_POINT rsync -av $SOURCE_DIR $STORAGE_MOUNT_POINT
# Turn off the ACT LED to indicate that the backup is completed
sudo sh -c "echo 0 > /sys/class/leds/led0/brightness"
# Turn off the ACT LED to indicate that the backup is completed
sudo sh -c "echo 0 > /sys/class/leds/led0/brightness"
fi
# Shutdown # Shutdown
sync sync
shutdown -h now shutdown -h now