digipi/home/pi/a.sh

9 wiersze
207 B
Bash
Executable File

cat /proc/device-tree/model | grep "Raspberry Pi 5"
if [ $? -eq 1 ]; then
echo "Pi5 detected"
/home/pi/digibuttons.gpiod.py #pi5
else
echo "Pi5 not detected"
/home/pi/digibuttons.rpigpio.py
fi