From 7cd267c421457c8078896a60e07856d97cfc0ab9 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 18 Feb 2024 20:59:32 +0100 Subject: [PATCH] fix missing state --- home.admin/00infoLCD.sh | 3 +++ home.admin/00raspiblitz.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 051d8973..dca4e89f 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -97,6 +97,9 @@ while : if [ "${setupPhase}" != "done" ] || [ "${state}" == "reboot" ] || [ "${state}" == "shutdown" ] || [ "${state}" == "copytarget" ] || [ "${state}" == "copysource" ] || [ "${state}" == "copystation" ]; then # show status info during boot & setup & repair on LCD + if [ "${state}" == "" ]; then + state="nostate" + fi /home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd sleep 1 continue diff --git a/home.admin/00raspiblitz.sh b/home.admin/00raspiblitz.sh index ef28bd46..9e26526a 100755 --- a/home.admin/00raspiblitz.sh +++ b/home.admin/00raspiblitz.sh @@ -324,6 +324,8 @@ MAINMENU > REPAIR > REPAIR-LND > RETRYSCB echo "https://github.com/rootzoll/raspiblitz#support" echo "command to shutdown --> off" exit 1 + elif [ "${state}" == "" ]; then + echo "state(${state}) message(${message})" else # every other state just push as event to SSH frontend /home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}"