mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
reboot signaling
This commit is contained in:
parent
2691cb0a33
commit
ee10fb4a70
3 changed files with 8 additions and 8 deletions
|
@ -92,7 +92,7 @@ while :
|
||||||
source <(/home/admin/config.scripts/network.aliases.sh getvars)
|
source <(/home/admin/config.scripts/network.aliases.sh getvars)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${setupPhase}" != "done" ] || [ "${state}" == "copytarget" ] || [ "${state}" == "copysource" ] || [ "${state}" == "copystation" ]; then
|
if [ "${setupPhase}" != "done" ] || [ "${state}" == "reboot" ] || [ "${state}" == "shutdown" ] || [ "${state}" == "copytarget" ] || [ "${state}" == "copysource" ] || [ "${state}" == "copystation" ]; then
|
||||||
|
|
||||||
# show status info during boot & setup & repair on LCD
|
# show status info during boot & setup & repair on LCD
|
||||||
/home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd
|
/home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd
|
||||||
|
|
|
@ -198,7 +198,7 @@ fi
|
||||||
|
|
||||||
if [ "${systemInitReboot}" == "1" ]; then
|
if [ "${systemInitReboot}" == "1" ]; then
|
||||||
sudo cp ${logFile} ${logFile}.systeminit
|
sudo cp ${logFile} ${logFile}.systeminit
|
||||||
sudo sed -i "s/^state=.*/state=reboot-init/g" ${infoFile}
|
sudo sed -i "s/^state=.*/state=reboot/g" ${infoFile}
|
||||||
sleep 8
|
sleep 8
|
||||||
sudo shutdown -r now
|
sudo shutdown -r now
|
||||||
sleep 100
|
sleep 100
|
||||||
|
|
|
@ -58,18 +58,18 @@ elif [ "${eventID}" == "reboot" ] && [ "${contentString}" == "finalsetup" ]; the
|
||||||
Final Setup Reboot
|
Final Setup Reboot
|
||||||
" 5 23
|
" 5 23
|
||||||
|
|
||||||
|
elif [ "${eventID}" == "reboot" ] && [ "${contentString}" != "" ]; then
|
||||||
|
|
||||||
|
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||||
|
Rebooting (${contentString})
|
||||||
|
" 5 35
|
||||||
|
|
||||||
elif [ "${eventID}" == "reboot" ]; then
|
elif [ "${eventID}" == "reboot" ]; then
|
||||||
|
|
||||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||||
Shutting down for reboot.
|
Shutting down for reboot.
|
||||||
" 5 30
|
" 5 30
|
||||||
|
|
||||||
elif [ "${eventID}" == "reboot-init" ]; then
|
|
||||||
|
|
||||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
|
||||||
Rebooting for Setup (${contentString})
|
|
||||||
" 5 30
|
|
||||||
|
|
||||||
elif [ "${eventID}" == "error" ] && [ "${mode}" == "lcd" ]; then
|
elif [ "${eventID}" == "error" ] && [ "${mode}" == "lcd" ]; then
|
||||||
|
|
||||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||||
|
|
Loading…
Add table
Reference in a new issue