From eb9accf8b1617310e9abf8560395b28df52b87b2 Mon Sep 17 00:00:00 2001 From: nagumii Date: Tue, 10 Dec 2024 17:22:26 +0200 Subject: [PATCH] better code comments --- .../out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh index f9ea8d0..ec8452d 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh @@ -21,7 +21,7 @@ exit_script() { exit $1 } -#Blink +#Blink/boot code function blink() { echo 1 > /sys/class/gpio/gpio34/value; #LED on sleep "$1"; #wait @@ -68,7 +68,7 @@ else log_message "USB drive mounted successfully at $mount_point." else log_message "Failed to mount USB drive." - blink "5" && sleep "0.5" + blink "5" && sleep "0.5" #boot code exit_script 1 fi fi @@ -273,7 +273,7 @@ if [ -f "$mount_point/femtofox-config.txt" ]; then else #if no valid data in config file log_message "femtofox-config.txt does not contain valid configuration info, ignoring." - for _ in {1..5}; do + for _ in {1..5}; do #boot code blink "1.5" && sleep 0.5 done exit_script 1 @@ -281,7 +281,7 @@ if [ -f "$mount_point/femtofox-config.txt" ]; then else log_message "USB drive mounted but femtofox-config.txt not found, ignoring." - for _ in {1..3}; do + for _ in {1..3}; do #boot code blink "1.5" && sleep 0.5 done exit_script 1