2010-05-30 01:32:58 +00:00
|
|
|
#!/bin/sh
|
2013-02-18 10:37:55 +00:00
|
|
|
# Copyright (C) 2007-2013 OpenWrt.org
|
2010-05-30 01:32:58 +00:00
|
|
|
|
2013-02-18 10:37:55 +00:00
|
|
|
. /lib/functions/leds.sh
|
2010-05-30 01:32:58 +00:00
|
|
|
. /lib/brcm63xx.sh
|
|
|
|
|
|
|
|
set_state() {
|
|
|
|
case "$1" in
|
|
|
|
preinit)
|
|
|
|
status_led_set_timer 200 200
|
|
|
|
;;
|
|
|
|
failsafe)
|
|
|
|
status_led_set_timer 50 50
|
|
|
|
;;
|
2014-12-15 10:37:00 +00:00
|
|
|
preinit_regular)
|
|
|
|
status_led_set_timer 500 500
|
|
|
|
;;
|
2010-05-30 01:32:58 +00:00
|
|
|
done)
|
2011-05-11 13:33:45 +00:00
|
|
|
if [ "${status_led/power}" != "$status_led" ]; then
|
2010-08-02 19:33:08 +00:00
|
|
|
status_led_on
|
|
|
|
else
|
|
|
|
status_led_off
|
|
|
|
fi
|
2010-05-30 01:32:58 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|