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