From 2c6872dbe0c2a793beaff5c0d62ecd77afd0cba9 Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Thu, 22 Mar 2018 16:51:51 +0100 Subject: [PATCH] Minor fixes --- scripts/card-backup.sh | 1 + scripts/device-backup.sh | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/card-backup.sh b/scripts/card-backup.sh index 3f2e849..43ae37a 100755 --- a/scripts/card-backup.sh +++ b/scripts/card-backup.sh @@ -81,6 +81,7 @@ if [ ! -z $CARD_READER ]; then # Turn off the ACT LED to indicate that the backup is completed sudo sh -c "echo 0 > /sys/class/leds/led0/brightness" fi + # Shutdown sync shutdown -h now diff --git a/scripts/device-backup.sh b/scripts/device-backup.sh index 0e49da5..1484aeb 100755 --- a/scripts/device-backup.sh +++ b/scripts/device-backup.sh @@ -48,12 +48,12 @@ sudo shutdown -c sudo sh -c "echo timer > /sys/class/leds/led0/trigger" sudo sh -c "echo 1000 > /sys/class/leds/led0/delay_on" - # Perform backup using rsync - rsync -av $SOURCE_DIR $STORAGE_MOUNT_POINT +# Perform backup using rsync +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 sync shutdown -h now