mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
7514b6d73b
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47733
52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults-new.sh
|
|
. /lib/kirkwood.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(kirkwood_board_name)
|
|
|
|
case "$board" in
|
|
"dockstar")
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
|
|
;;
|
|
"linksys-audi")
|
|
ucidef_set_led_default "power" "power" "audi:green:power" "1"
|
|
;;
|
|
"linksys-viper")
|
|
ucidef_set_led_default "health" "health" "viper:white:health" "1"
|
|
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
|
|
;;
|
|
"goflexhome" | \
|
|
"goflexnet")
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
|
|
;;
|
|
"ib62x0")
|
|
ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
|
|
ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
|
|
;;
|
|
"pogo_e02")
|
|
ucidef_set_led_default "health" "health" "pogo_e02:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "pogo_e02:orange:fault" "1"
|
|
;;
|
|
"guruplug-server-plus")
|
|
ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"
|
|
;;
|
|
"sheevaplug" | \
|
|
"sheevaplug-esata")
|
|
ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|