From 5711d09775d050a15a6050a497b829ec6d078969 Mon Sep 17 00:00:00 2001 From: Alessandro Lannocca Date: Wed, 19 Jun 2024 23:00:01 +0100 Subject: [PATCH] comment network link-state saving prevention --- packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh | 2 ++ 1 file changed, 2 insertions(+) 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 b284e2ecdc13..39aa4b0d817c 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 @@ -35,6 +35,8 @@ 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 + # In case trigger is representing link-state for any network, don't store its previous state + # This avoids ghost wan/lan/etc (led up while cable unplugged) [[ "$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"