We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7653def commit 5711d09Copy full SHA for 5711d09
packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh
@@ -35,6 +35,8 @@ function store_led() {
35
36
# In case the trigger is any of the kbd-*, don't store any other parameter
37
# 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)
40
[[ "$TRIGGER_VALUE" =~ kbd-* || "$TRIGGER_VALUE" == *":link" ]] && return
41
42
COMMAND_PARAMS="$CMD_FIND $PATH/ -maxdepth 1 -type f ! -iname uevent ! -iname trigger -perm /u+w -printf %f\\n"
0 commit comments