2007-09-27 23:02:19 +08:00
|
|
|
#!/bin/sh
|
2013-02-18 17:56:26 +08:00
|
|
|
# Copyright (C) 2007-2013 OpenWrt.org
|
2007-09-27 23:02:19 +08:00
|
|
|
|
2013-02-18 17:56:26 +08:00
|
|
|
. /lib/functions/leds.sh
|
2007-09-27 23:02:19 +08:00
|
|
|
. /lib/adm5120.sh
|
|
|
|
|
|
|
|
set_state() {
|
|
|
|
case "$1" in
|
|
|
|
preinit)
|
2013-02-18 17:56:26 +08:00
|
|
|
status_led_blink_preinit
|
2007-09-27 23:02:19 +08:00
|
|
|
;;
|
|
|
|
failsafe)
|
2013-02-18 17:56:26 +08:00
|
|
|
status_led_blink_failsafe
|
2007-09-27 23:02:19 +08:00
|
|
|
;;
|
|
|
|
done)
|
|
|
|
status_led_on
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|