From 53c3cc5ec268893f494442bb9e14c20ef2b7f83a Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Sun, 22 Jun 2025 14:22:50 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=BCfung,=20ob=20whiptail=20verf=C3=BCgbar?= =?UTF-8?q?=20ist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- raspi-bash/manuell.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/raspi-bash/manuell.sh b/raspi-bash/manuell.sh index 29ce401..7337643 100755 --- a/raspi-bash/manuell.sh +++ b/raspi-bash/manuell.sh @@ -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 \