kirkwood: do not expose status LED to user config by default
[openwrt/openwrt.git] / target / linux / kirkwood / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2012-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 board=$(board_name)
11
12 case "$board" in
13 "iom,ix2-200")
14 ucidef_set_led_timer "health" "health" "status:white:rebuild_led" "200" "800"
15 ;;
16 "linksys,viper")
17 ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
18 ;;
19 "zyxel,nsa310b")
20 ucidef_set_led_usbhost "usb" "USB" "nsa310:green:usb"
21 ucidef_set_led_ataport "hdd" "HDD" "nsa310:green:hdd" "1"
22 ucidef_set_led_ataport "esata" "eSata" "nsa310:green:esata" "2"
23 ;;
24 "zyxel,nsa325")
25 ucidef_set_led_usbhost "usb" "USB" "nsa325:green:usb"
26 ucidef_set_led_ataport "hdd1" "HDD1" "nsa325:green:hdd1" "1"
27 ucidef_set_led_ataport "hdd2" "HDD2" "nsa325:green:hdd2" "2"
28 ;;
29 esac
30
31 board_config_flush
32
33 exit 0