fix missing state

This commit is contained in:
rootzoll 2024-02-18 20:59:32 +01:00
parent 449b0a226c
commit 7cd267c421
2 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,9 @@ while :
if [ "${setupPhase}" != "done" ] || [ "${state}" == "reboot" ] || [ "${state}" == "shutdown" ] || [ "${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
if [ "${state}" == "" ]; then
state="nostate"
fi
/home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd /home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd
sleep 1 sleep 1
continue continue

View File

@ -324,6 +324,8 @@ MAINMENU > REPAIR > REPAIR-LND > RETRYSCB
echo "https://github.com/rootzoll/raspiblitz#support" echo "https://github.com/rootzoll/raspiblitz#support"
echo "command to shutdown --> off" echo "command to shutdown --> off"
exit 1 exit 1
elif [ "${state}" == "" ]; then
echo "state(${state}) message(${message})"
else else
# every other state just push as event to SSH frontend # every other state just push as event to SSH frontend
/home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" /home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}"