diff options
Diffstat (limited to 'recipes-core/initscripts/initscripts-1.0')
-rw-r--r-- | recipes-core/initscripts/initscripts-1.0/umountfs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/recipes-core/initscripts/initscripts-1.0/umountfs b/recipes-core/initscripts/initscripts-1.0/umountfs index 1c9a9ce..f555aba 100644 --- a/recipes-core/initscripts/initscripts-1.0/umountfs +++ b/recipes-core/initscripts/initscripts-1.0/umountfs @@ -24,13 +24,15 @@ umount_all() { } blink_leds() { - leds=/sys/class/leds/* - nleds=$(echo $leds | wc -w) + led_dir=/sys/class/leds + # blink all programmable LEDs except status + leds=$(ls $led_dir/ | grep -v status) + nleds=$(echo "$leds" | wc -w) # turn LEDs off for led in $leds; do - echo "timer" > $led/trigger - echo 0 > $led/delay_off + echo "timer" > $led_dir/$led/trigger + echo 0 > $led_dir/$led/delay_off done int=200 @@ -40,8 +42,8 @@ blink_leds() { # make a pattern for led in $leds; do - echo "$on" > $led/delay_on - echo "$off" > $led/delay_off + echo "$on" > $led_dir/$led/delay_on + echo "$off" > $led_dir/$led/delay_off on=$(( on - int )) off=$(( total - on )) done |