mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
5953e79888
Signed-off-by: Michael Heimpold <mhei@heimpold.de> Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 35660
22 lines
282 B
Bash
22 lines
282 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2007-2013 OpenWrt.org
|
|
|
|
. /lib/functions/leds.sh
|
|
|
|
set_state() {
|
|
case "$1" in
|
|
preinit)
|
|
led_off "mtx1:green"
|
|
led_on "mtx1:red"
|
|
;;
|
|
failsafe)
|
|
led_on "mtx1:green"
|
|
led_on "mtx1:red"
|
|
;;
|
|
done)
|
|
led_on "mtx1:green"
|
|
led_off "mtx1:red"
|
|
;;
|
|
esac
|
|
}
|