Skip to content

Commit

Permalink
fix armbian-leds-state-save.sh:
Browse files Browse the repository at this point in the history
don't  store parameters for networking link establishment (avoid ghost wan/lan/eth link led up on bootup)
  • Loading branch information
alexl83 authored and igorpecovnik committed Jun 20, 2024
1 parent 6925745 commit 7653def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bsp/common/usr/lib/armbian/armbian-led-state-save.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 7653def

Please sign in to comment.