ramips: add support for ZTE MF283+
[openwrt/openwrt.git] / target / linux / ramips / rt305x / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2
3 . /lib/functions/leds.sh
4 . /lib/functions/uci-defaults.sh
5
6 board=$(board_name)
7
8 board_config_update
9
10 case $board in
11 7links,px-4885-4m|\
12 7links,px-4885-8m|\
13 fon,fonera-20n)
14 ucidef_set_led_netdev "wifi_led" "wifi" "orange:wifi" "wlan0"
15 ;;
16 airlive,air3gii|\
17 aximcom,mr-102n|\
18 edimax,3g-6200nl|\
19 netgear,wnce2001)
20 ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
21 ;;
22 alfa-network,w502u|\
23 dlink,dir-300-b1|\
24 dlink,dir-300-b7|\
25 dlink,dir-320-b1|\
26 dlink,dir-600-b1|\
27 dlink,dir-610-a1|\
28 dlink,dir-615-h1|\
29 dlink,dir-620-a1|\
30 engenius,esr-9753|\
31 hilink,hlk-rm04|\
32 nexx,wt1520-4m|\
33 nexx,wt1520-8m|\
34 skyline,sl-r7205|\
35 tenda,w306r-v2|\
36 zyxel,keenetic-start|\
37 zyxel,keenetic|\
38 zyxel,nbg-419n-v2)
39 ucidef_set_led_netdev "wifi_led" "wifi" "rt2800pci-phy0::radio" "wlan0"
40 ;;
41 allnet,all0256n-4m|\
42 allnet,all0256n-8m)
43 ucidef_set_rssimon "wlan0" "200000" "1"
44 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan0" "1" "40" "0" "6"
45 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimed" "wlan0" "30" "80" "-29" "5"
46 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "70" "100" "-69" "8"
47 ucidef_set_led_netdev "wifi_led" "wifi" "rt2800pci-phy0::radio" "wlan0"
48 ;;
49 alphanetworks,asl26555-8m|\
50 alphanetworks,asl26555-16m)
51 ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0"
52 ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
53 ;;
54 asiarf,awapn2403)
55 ucidef_set_led_netdev "wifi_led" "wifi" "rt2800soc-phy0::radio" "wlan0"
56 ;;
57 dlink,dcs-930l-b1)
58 ucidef_set_led_netdev "wifi" "WiFi" "blue:wps"
59 ;;
60 dlink,dir-615-d)
61 ucidef_set_led_netdev "wan" "WAN (green)" "green:wan" "eth0.2"
62 ucidef_set_led_netdev "wifi_led" "wifi" "rt2800soc-phy0::radio" "wlan0"
63 ;;
64 dlink,dir-620-d1|\
65 trendnet,tew-714tru)
66 ucidef_set_led_netdev "wifi_led" "wifi" "green:wifi" "wlan0"
67 ;;
68 edimax,3g-6200n|\
69 planex,mzk-w300nh2)
70 ucidef_set_led_netdev "wifi_led" "wifi" "amber:wlan" "wlan0"
71 ;;
72 hauppauge,broadway)
73 ucidef_set_led_netdev "wifi_led" "wifi" "red:wps_active" "wlan0"
74 ;;
75 hootoo,ht-tm02)
76 ucidef_set_led_netdev "eth" "Ethernet" "green:lan" "eth0"
77 ucidef_set_led_netdev "wifi_led" "wifi" "blue:wlan" "wlan0"
78 ;;
79 huawei,hg255d)
80 ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
81 ucidef_set_led_netdev "internet" "internet" "green:internet" "eth0.2"
82 ;;
83 intenso,memory2move)
84 ucidef_set_led_netdev "wifi_led" "wifi" "blue:wifi" "wlan0"
85 ucidef_set_led_netdev "eth" "Ethernet" "green:wan" "eth0"
86 ;;
87 omnima,miniembplug)
88 ucidef_set_led_netdev "wifi_led" "wifi" "red:wlan" "wlan0"
89 ;;
90 vocore,vocore-8m|\
91 vocore,vocore-16m)
92 ucidef_set_led_netdev "eth" "ETH" "orange:eth" "eth0"
93 ;;
94 zorlik,zl5900v2)
95 ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
96 ;;
97 zte,mf283plus)
98 ucidef_set_led_wlan "wifi" "wifi" "rt2800soc-phy0::radio" "phy0tpt"
99 ucidef_set_led_netdev "wwan" "wwan" "blue:wwan" "wwan0"
100 ;;
101 esac
102
103 board_config_flush
104
105 exit 0