From c965e0ea00d35714c4c9195381727b1c7629b498 Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Sun, 1 Oct 2017 13:49:02 +0200 Subject: [PATCH] More lsblk logging tweaking :monkey: --- backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index f790b3d..8febe21 100755 --- a/backup.sh +++ b/backup.sh @@ -10,9 +10,6 @@ STORAGE_MOUNT_POINT="/media/storage" CARD_DEV="sdb1" CARD_MOUNT_POINT="/media/card" -# Log the output of the lsblk command for troubleshooting -sudo lsblk > "$HOME/lsblk.log" - # Set the ACT LED to heartbeat sudo sh -c "echo heartbeat > /sys/class/leds/led0/trigger" @@ -60,6 +57,9 @@ if [ ! -z $CARD_READER ]; then < /dev/urandom tr -cd 0-9 | head -c 8 > $CARD_MOUNT_POINT/CARD_ID fi +# Log the output of the lsblk command for troubleshooting +sudo lsblk > "/home/pi/lsblk.log" + # Read the 8-digit identifier number from the CARD_ID file on the card # and use it as a directory name in the backup path read -r ID < $CARD_MOUNT_POINT/CARD_ID