From 8c14def157261d369c7503a5592d6d0b6fcd4539 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Wed, 10 Apr 2019 15:29:36 +0100 Subject: [PATCH] whiptail select next step --- home.admin/05hardwareTest.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/home.admin/05hardwareTest.sh b/home.admin/05hardwareTest.sh index 3c216d2..83b41aa 100755 --- a/home.admin/05hardwareTest.sh +++ b/home.admin/05hardwareTest.sh @@ -49,6 +49,7 @@ fi if [ ${showPowerImproveInfo} -gt 0 ]; then echo "TODO: Tell user how to improve Power" + # tell that sometimes a test rerun is needed # tell users if they have a power supply from the shopping list, they should report in fi @@ -72,5 +73,14 @@ if [ ${showPowerImproveInfo} -eq 0 ] && [ ${showHeatImproveInfo} -eq 0 ]; then RaspiBlitz hardware setup looks good :) Your are ready to continue - have fun. -" 8 48 -fi \ No newline at end of file +" 8 43 +fi + + whiptail --backtitle "RaspiBlitz v${codeVersion}" --title " Hardware Check " --menu "What todo about Power Issues?" 12 60 6 \ +"TESTAGAIN" "Run Test again to be sure." \ +"CONTINUE" "I take the risk - continue." \ +"SHUTDOWN" "Shutdown to change hardware." +if [ $? != 0 ]; then + $choice="SHUTDOWN" +fi +echo "User eneterd $choice"