From a7ea89f1e250c9f535b90dead381ba56a44f1d61 Mon Sep 17 00:00:00 2001 From: openoms Date: Tue, 29 Jan 2019 19:03:04 +0000 Subject: [PATCH] fix 50copyHDD.sh --- home.admin/50copyHDD.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/home.admin/50copyHDD.sh b/home.admin/50copyHDD.sh index e5bb49b..5c2bbcd 100755 --- a/home.admin/50copyHDD.sh +++ b/home.admin/50copyHDD.sh @@ -17,9 +17,10 @@ ready=0 while [ ${ready} -eq 0 ] do hddA=$(lsblk | grep /mnt/hdd | grep -c sda1) - if [ ${hddB} -eq 1 ]; then + if [ ${hddA} -eq 1 ]; then echo "OK - HDD as sda1 found" ready=1 + fi if [ ${hddA} -eq 0 ]; then echo "FAIL - 1st HDD not found as sda1 or sda" echo "Try 'sudo shutdown -r now'" @@ -42,7 +43,7 @@ echo "Like this one: https://www.amazon.de/dp/B00ZJBIHVY" echo "If you see on LCD a error on connecting the 2nd HDD do a restart." echo "" echo "You can use the HDD of another RaspiBlitz for this." -echo "The 2nd HDD needs to be formated Ext4/exFAT and the folder '${network}' is in root of HDD." +echo "The 2nd HDD needs to be formatted Ext4/exFAT and the folder '${network}' is in root of HDD." echo "" echo "**********************************" echo "--> Please connect now the 2nd HDD" @@ -54,12 +55,12 @@ ready=0 while [ ${ready} -eq 0 ] do hddC=$(lsblk | grep -c sdb1) - if [ ${hddB} -eq 1 ]; then + if [ ${hddC} -eq 1 ]; then echo "OK - 2nd HDD found as sdb1" ready=1 fi hddD=$(lsblk | grep -c sdb) - if [ ${hddB} -eq 1 ]; then + if [ ${hddD} -eq 1 ]; then echo "OK - 2nd HDD found as sdb" ready=1 fi