fix hdd detection

This commit is contained in:
rootzoll 2018-11-27 04:38:37 +01:00
parent b2481c5d95
commit f4675ca01c
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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