Prüfung, ob whiptail verfügbar ist.
This commit is contained in:
@@ -20,6 +20,13 @@ function setPins() {
|
||||
gpioset "${gpiochip}" ${pin_rot}=${state_rot} ${pin_gelb}=${state_gelb} ${pin_gruen}=${state_gruen}
|
||||
}
|
||||
|
||||
installed=$(command -v whiptail)
|
||||
if [ -z "${installed}" ]; then
|
||||
echo "whiptail muss installiert sein und im PATH liegen!"
|
||||
exit 5
|
||||
fi
|
||||
|
||||
|
||||
while true
|
||||
do
|
||||
AUSWAHL=($(whiptail --title "Ampelsteuerung" --checklist "manuelle Steuerung" 25 75 3 \
|
||||
|
Reference in New Issue
Block a user