base-files: board.d: support ide leds
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / uci-defaults / leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/ipq806x.sh
8
9 board=$(ipq806x_board_name)
10
11 case "$board" in
12 r7500)
13 ucidef_set_led_usbdev "usb1" "USB 1" "r7500:white:usb1" "1-1"
14 ucidef_set_led_usbdev "usb2" "USB 2" "r7500:white:usb3" "3-1"
15 ucidef_set_led_netdev "wan" "WAN" "r7500:white:wan" "eth0"
16 ucidef_set_led_ide_disk "esata" "eSATA" "r7500:amber:esata"
17 ucidef_set_led_default "wps" "WPS" "r7500:white:wps" "0"
18 ucidef_set_led_default "rfkill" "rfkill" "r7500:white:rfkill" "0"
19 ;;
20 *)
21 ;;
22 esac
23
24 ucidef_commit_leds
25
26 exit 0