mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
fix hdd detection
This commit is contained in:
parent
b2481c5d95
commit
f4675ca01c
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user