diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 786a5147..9197105d 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -62,7 +62,7 @@ while : bootstrapInfoExists=$(ls /home/admin/raspiblitz.info | grep -c '.info') if [ ${bootstrapInfoExists} -eq 1 ]; then # load the data from the info file - overwrite state & message - sudo -u admin source /home/admin/raspiblitz.info + source /home/admin/raspiblitz.info fi # setup process has not started yet @@ -71,7 +71,7 @@ while : l3="Use password: raspiblitz\n" boxwidth=$((${#localip} + 24)) sleep 3 - dialog --backtitle "RaspiBlitz (${state}) - ${message}" --infobox "$l1$l2$l3" 6 ${boxwidth} + dialog --backtitle "RaspiBlitz (${state}) - ${message}" --infobox "$l1$l2$l3" 5 ${boxwidth} sleep 5 # during basic setup diff --git a/home.admin/_bootstrap.sh b/home.admin/_bootstrap.sh index 0481a141..5d7fc85b 100644 --- a/home.admin/_bootstrap.sh +++ b/home.admin/_bootstrap.sh @@ -34,6 +34,7 @@ echo "***********************************************" >> $logFile echo "Resetting the InfoFile: ${infoFile}" echo "state=starting" > $infoFile +sudo chmod 745 ${infoFile} ################################ # AFTER BOOT SCRIPT @@ -80,6 +81,8 @@ while [ ${hddExists} -eq 0 ] echo "state=nohdd" > $infoFile echo "message='Connect the Hard Drive'" >> $infoFile sleep 5 + # retry to find HDD + hddExists=$(lsblk | grep -c sda1) done # check if the HDD is auto-mounted