Merge pull request #251 from femtofox/new_working

Add LED heartbeat during first boot
This commit is contained in:
noon92 2025-01-24 21:11:56 +02:00 • committed by GitHub
commit e617434dc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,14 @@ fi
echo -e "\e[32m******* First boot *******\e[0m"
# pulse LED during firstboot
while true; do
echo 1 > /sys/class/gpio/gpio34/value;
sleep 0.5;
echo 0 > /sys/class/gpio/gpio34/value;
sleep 0.5;
done
# Disable LED to prevent boot codes from showing during this boot
#sh -c "echo 34 > /sys/class/gpio/unexport"