mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fix whiptail
This commit is contained in:
parent
97e44fd952
commit
d6d7679631
1 changed files with 5 additions and 5 deletions
|
@ -77,13 +77,13 @@ Your are ready to continue - have fun.
|
|||
fi
|
||||
|
||||
$choice=$(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." 3>&1 1>&2 2>&3)
|
||||
TESTAGAIN "Run Test again to be sure." \
|
||||
CONTINUE "I take the risk - continue." \
|
||||
SHUTDOWN "Shutdown to change hardware." 3>&1 1>&2 2>&3)
|
||||
if [ ${#choice} -eq 0 ]; then
|
||||
$choice="SHUTDOWN"
|
||||
$choice="CONTINUE"
|
||||
fi
|
||||
echo "User eneterd $choice"
|
||||
echo "User eneterd (${choice})"
|
||||
if [ "${choice}" == "TESTAGAIN" ]; then
|
||||
echo "Shutting down ..."
|
||||
sudo /home/admin/05hardwareTest.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue