ipq806x: sync image filename with dt compatible string
[openwrt/staging/wigyori.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.sh
7
8 board_config_update
9
10 board=$(board_name)
11 boardname="${board##*,}"
12
13 case "$board" in
14 c2600)
15 ucidef_set_led_usbport "usb1" "USB 1" "${board}:white:usb_2" "usb1-port1" "usb2-port1"
16 ucidef_set_led_usbport "usb2" "USB 2" "${board}:white:usb_4" "usb3-port1" "usb4-port1"
17 ucidef_set_led_switch "wan" "wan" "${board}:white:wan" "switch0" "0x20"
18 ucidef_set_led_switch "lan" "lan" "${board}:white:lan" "switch0" "0x1e"
19 ;;
20 d7800 |\
21 r7500 |\
22 r7500v2 |\
23 r7800)
24 ucidef_set_led_usbport "usb1" "USB 1" "${board}:white:usb1" "usb1-port1" "usb2-port1"
25 ucidef_set_led_usbport "usb2" "USB 2" "${board}:white:usb2" "usb3-port1" "usb4-port1"
26 ucidef_set_led_netdev "wan" "WAN" "${board}:white:wan" "eth0"
27 ucidef_set_led_ide "esata" "eSATA" "${board}:white:esata"
28 ;;
29 fritz4040)
30 ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt" "phy1tpt"
31 ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
32 ucidef_set_led_switch "lan" "LAN" "${board}:green:lan" "switch0" "0x1e"
33 ;;
34 nbg6817)
35 ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:amber:wifi2g" "phy1tpt"
36 ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:amber:wifi5g" "phy0tpt"
37 ucidef_set_led_netdev "wan" "WAN" "$board:white:internet" "eth1"
38 ;;
39 vr2600v)
40 ucidef_set_led_usbport "usb" "USB" "${board}:white:usb" "usb1-port1" "usb2-port1" "usb3-port1" "usb4-port1"
41 ucidef_set_led_switch "lan" "lan" "${board}:white:lan" "switch0" "0x1e"
42 ucidef_set_led_wlan "wlan2g" "WLAN2G" "${board}:white:wlan2g" "phy0tpt"
43 ucidef_set_led_wlan "wlan5g" "WLAN5G" "${board}:white:wlan5g" "phy1tpt"
44 ucidef_set_led_switch "wan" "wan" "${board}:white:wan" "switch0" "0x20"
45 ;;
46 *)
47 ;;
48 esac
49
50 board_config_flush
51
52 exit 0