openwrtv3/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
Luka Perkov 4f1a9470f0 kirkwood: add support for Linksys EA3500
http://wiki.openwrt.org/toh/linksys/ea3500

Signed-off-by: Dan Walters <dan@walters.io>

SVN-Revision: 43230
2014-11-10 23:55:10 +00:00

37 lines
781 B
Bash

#!/bin/sh
#
# Copyright (C) 2012-2014 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
. /lib/kirkwood.sh
board=$(kirkwood_board_name)
case "$board" in
"dockstar")
ucidef_set_led_default "health" "status:green:health" "1"
ucidef_set_led_default "fault" "status:orange:fault" "1"
;;
"ea3500")
ucidef_set_led_default "power" "ea3500:green:power" "1"
;;
"ea4500")
ucidef_set_led_default "health" "ea4500:white:health" "1"
ucidef_set_led_default "pulse" "ea4500:white:pulse" "1"
;;
"ib62x0")
ucidef_set_led_default "health" "ib62x0:green:os" "1"
ucidef_set_led_default "fault" "ib62x0:red:os" "1"
;;
"pogo_e02")
ucidef_set_led_default "health" "status:green:health" "1"
ucidef_set_led_default "fault" "status:orange:fault" "1"
;;
*)
;;
esac
ucidef_commit_leds
exit 0