Merge pull request #252 from femtofox/new_working

make pulse run in background
This commit is contained in:
noon92 2025-01-24 21:18:17 +02:00 • committed by GitHub
commit 4e2cecd20f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,12 +27,14 @@ fi
echo -e "\e[32m******* First boot *******\e[0m"
# pulse LED during firstboot
while true; do
(
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"