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