From 464710740ee369f04fc0dda639454add01c8965b Mon Sep 17 00:00:00 2001 From: nagumii Date: Fri, 24 Jan 2025 21:17:45 +0200 Subject: [PATCH] make pulse run in background --- .../out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh index e8b402e..ab938a0 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh @@ -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"