apm821xx: add support for the Cisco Meraki MR24
[openwrt/staging/dedeckeh.git] / target / linux / apm821xx / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4 . /lib/apm821xx.sh
5
6 board_config_update
7
8 board=$(apm821xx_board_name)
9
10 case "$board" in
11 mr24)
12 ucidef_set_led_netdev "wan" "WAN" "mr24:green:wan" "eth0"
13 ucidef_set_led_wlan "wlan1" "WLAN1" "mr24:green:wifi1" "phy0assoc"
14 ucidef_set_led_wlan "wlan2" "WLAN2" "mr24:green:wifi2" "phy0assoc"
15 ucidef_set_led_wlan "wlan3" "WLAN3" "mr24:green:wifi3" "phy0assoc"
16 ucidef_set_led_wlan "wlan4" "WLAN4" "mr24:green:wifi4" "phy0tpt"
17 ;;
18
19 *)
20 ;;
21 esac
22
23 board_config_flush
24
25 exit 0