Browse Source

fix hdd detection

#146
rootzoll 6 years ago
parent
commit
f4675ca01c
  1. 4
      home.admin/00infoLCD.sh
  2. 3
      home.admin/_bootstrap.sh

4
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

3
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

Loading…
Cancel
Save