2010-04-11 17:47:23 +00:00
|
|
|
#!/bin/sh
|
2013-02-18 09:56:29 +00:00
|
|
|
# Copyright (C) 2010-2013 OpenWrt.org
|
2010-04-11 17:47:23 +00:00
|
|
|
|
2013-02-18 09:56:29 +00:00
|
|
|
. /lib/functions/leds.sh
|
2010-04-11 17:47:23 +00:00
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
status_led="$(get_dt_led status)"
|
2010-04-11 17:47:23 +00:00
|
|
|
|
|
|
|
set_state() {
|
|
|
|
case "$1" in
|
|
|
|
preinit)
|
2013-02-18 09:56:29 +00:00
|
|
|
status_led_blink_preinit
|
2010-04-11 17:47:23 +00:00
|
|
|
;;
|
|
|
|
failsafe)
|
2013-02-18 09:56:29 +00:00
|
|
|
status_led_blink_failsafe
|
2010-04-11 17:47:23 +00:00
|
|
|
;;
|
2015-11-03 13:32:02 +00:00
|
|
|
upgrade | \
|
2014-12-15 10:37:00 +00:00
|
|
|
preinit_regular)
|
|
|
|
status_led_blink_preinit_regular
|
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
done)
|
|
|
|
status_led_on
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|