2010-12-30 17:19:16 +00:00
|
|
|
#!/bin/sh
|
2013-02-18 09:56:28 +00:00
|
|
|
# Copyright (C) 2010-2013 OpenWrt.org
|
2010-12-30 17:19:16 +00:00
|
|
|
|
2013-02-18 09:56:28 +00:00
|
|
|
. /lib/functions/leds.sh
|
2010-12-30 17:19:16 +00:00
|
|
|
. /lib/cns21xx.sh
|
|
|
|
|
|
|
|
get_status_led() {
|
|
|
|
case $(get_board_name) in
|
|
|
|
ns-k330)
|
|
|
|
status_led="ns-k330:red:link"
|
|
|
|
;;
|
|
|
|
esac;
|
|
|
|
}
|
|
|
|
|
|
|
|
set_state() {
|
|
|
|
get_status_led
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
preinit)
|
2013-02-18 09:56:28 +00:00
|
|
|
status_led_blink_preinit
|
2010-12-30 17:19:16 +00:00
|
|
|
;;
|
|
|
|
failsafe)
|
2013-02-18 09:56:28 +00:00
|
|
|
status_led_blink_failsafe
|
2010-12-30 17:19:16 +00:00
|
|
|
;;
|
|
|
|
done)
|
|
|
|
status_led_on
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|