mirror of
https://github.com/femtofox/femtofox.git
synced 2026-11-26 18:06:30 -05:00
Merge pull request #251 from femtofox/new_working
Add LED heartbeat during first boot
This commit is contained in:
commit
e617434dc5
1 changed files with 8 additions and 0 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue