Skip to content

Commit 5711d09

Browse files
alexl83igorpecovnik
authored andcommitted
comment network link-state saving prevention
1 parent 7653def commit 5711d09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ function store_led() {
3535

3636
# In case the trigger is any of the kbd-*, don't store any other parameter
3737
# This avoids num/scroll/capslock from being restored at startup
38+
# In case trigger is representing link-state for any network, don't store its previous state
39+
# This avoids ghost wan/lan/etc (led up while cable unplugged)
3840
[[ "$TRIGGER_VALUE" =~ kbd-* || "$TRIGGER_VALUE" == *":link" ]] && return
3941

4042
COMMAND_PARAMS="$CMD_FIND $PATH/ -maxdepth 1 -type f ! -iname uevent ! -iname trigger -perm /u+w -printf %f\\n"

0 commit comments

Comments
 (0)