From 7653def2114b829ad263590800ad67c0bde64ada Mon Sep 17 00:00:00 2001 From: Alessandro Lannocca Date: Wed, 19 Jun 2024 22:00:00 +0100 Subject: [PATCH] fix armbian-leds-state-save.sh: don't store parameters for networking link establishment (avoid ghost wan/lan/eth link led up on bootup) --- packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh b/packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh index fdf0dac62023..b284e2ecdc13 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh +++ b/packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh @@ -19,7 +19,7 @@ CMD_FIND=$(which find) # $1 = base led path # $2 = path of destination state file function store_led() { - + PATH="$1" TRIGGER_PATH="$1/trigger" DESTINATION="$2" @@ -35,7 +35,7 @@ function store_led() { # In case the trigger is any of the kbd-*, don't store any other parameter # This avoids num/scroll/capslock from being restored at startup - [[ "$TRIGGER_VALUE" =~ kbd-* ]] && return + [[ "$TRIGGER_VALUE" =~ kbd-* || "$TRIGGER_VALUE" == *":link" ]] && return COMMAND_PARAMS="$CMD_FIND $PATH/ -maxdepth 1 -type f ! -iname uevent ! -iname trigger -perm /u+w -printf %f\\n" PARAMS=$($COMMAND_PARAMS)