Browse Source

Prüfung, ob whiptail verfügbar ist.

master
Olli Graf 1 week ago
parent
commit
53c3cc5ec2
  1. 7
      raspi-bash/manuell.sh

7
raspi-bash/manuell.sh

@ -20,6 +20,13 @@ function setPins() {
gpioset "${gpiochip}" ${pin_rot}=${state_rot} ${pin_gelb}=${state_gelb} ${pin_gruen}=${state_gruen} 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 while true
do do
AUSWAHL=($(whiptail --title "Ampelsteuerung" --checklist "manuelle Steuerung" 25 75 3 \ AUSWAHL=($(whiptail --title "Ampelsteuerung" --checklist "manuelle Steuerung" 25 75 3 \

Loading…
Cancel
Save