2 # Copyright (C) 2006 OpenWrt.org
4 . /lib/functions/leds.sh
7 status_led_file=$(find /sys/class/leds/ -name "*power*" |head -n1)
8 if [ ! -f $status_led_file ]; then
9 status_led=$(basename $status_led_file)
12 status_led_file=$(find /sys/class/leds/ -name "*diag*" |head -n1)
13 if [ ! -f $status_led_file ]; then
14 status_led=$(basename $status_led_file)
17 status_led_file=$(find /sys/class/leds/ -name "*wps*" |head -n1)
18 if [ ! -f $status_led_file ]; then
19 status_led=$(basename $status_led_file)
29 status_led_blink_preinit
32 status_led_blink_failsafe