mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
c9e2c35f46
Drop the target specific detection function in favour of the generic one provided by base-files. Signed-off-by: Mathias Kresin <dev@kresin.me>
56 lines
1.6 KiB
Bash
Executable File
56 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
"seagate,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"
|
|
;;
|
|
"seagate,goflexhome" | \
|
|
"seagate,goflexnet")
|
|
ucidef_set_led_default "health" "health" "status:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
|
|
;;
|
|
"raidsonic,ib-nas62x0")
|
|
ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
|
|
ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
|
|
;;
|
|
"cloudengines,pogoe02")
|
|
ucidef_set_led_default "health" "health" "pogo_e02:green:health" "1"
|
|
ucidef_set_led_default "fault" "fault" "pogo_e02:orange:fault" "1"
|
|
;;
|
|
"zyxel,nsa310b")
|
|
ucidef_set_led_default "health" "health" "nsa310:green:sys" "1"
|
|
ucidef_set_led_usbhost "usb" "USB" "nsa310:green:usb"
|
|
ucidef_set_led_ataport "hdd" "HDD" "nsa310:green:hdd" "1"
|
|
ucidef_set_led_ataport "esata" "eSata" "nsa310:green:esata" "2"
|
|
;;
|
|
"zyxel,nsa325")
|
|
ucidef_set_led_default "health" "health" "nsa325:green:sys" "1"
|
|
ucidef_set_led_usbhost "usb" "USB" "nsa325:green:usb"
|
|
ucidef_set_led_ataport "hdd1" "HDD1" "nsa325:green:sata1" "1"
|
|
ucidef_set_led_ataport "hdd2" "HDD2" "nsa325:green:sata2" "2"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|