[ramips] Add Netgear WNCE2001 (OF version)
[openwrt.git] / target / linux / ramips / base-files / etc / uci-defaults / 01_leds
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4 . /lib/ramips.sh
5
6 set_usb_led() {
7         ucidef_set_led_usbdev "usb" "USB" "$1" "1-1"
8 }
9
10 set_wifi_led() {
11         ucidef_set_led_netdev "wifi_led" "wifi" "$1" "wlan0"
12 }
13
14 board=$(ramips_board_name)
15
16 case $board in
17         3g-6200n)
18                 set_wifi_led "edimax:amber:wlan"
19                 set_usb_led "edimax:blue:3g"
20                 ;;
21         3g-6200nl)
22                 set_wifi_led "edimax:green:wlan"
23                 ;;
24         3g300m)
25                 set_usb_led "tenda:blue:3g"
26                 ;;
27         air3gii)
28                 set_wifi_led "airlive:green:wlan"
29                 set_usb_led "airlive:green:mobile"
30                 ;;
31         all0256n)
32                 ucidef_set_rssimon "wlan0" "40000" "1"
33                 ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6"
34                 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5"
35                 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
36                 set_wifi_led "rt2800pci-phy0::radio"
37                 ;;
38         bc2)
39                 set_usb_led "bc2:blue:usb"
40                 ;;
41         br6425)
42                 set_wifi_led "edimax:orange:wlan"
43                 ;;
44         broadway)
45                 set_usb_led "red:diskmounted"
46                 set_wifi_led "red:wps_active"
47                 ;;
48         br6524n)
49                 set_wifi_led "edimax:blue:wlan"
50                 ;;
51         d105)
52                 ucidef_set_led_default "power" "POWER" "d105:red:power" "1"
53                 set_usb_led "d105:green:usb"
54                 ;;
55         dir-300-b1|\
56         dir-600-b1|\
57         dir-600-b2|\
58         dir-620-a1)
59                 # ANDed with vlan switch port 4 led state
60                 ucidef_set_led_default "wan" "WAN LED (amber)" "d-link:amber:wan" "1"
61                 set_wifi_led "rt2800pci-phy0::radio"
62                 ;;
63         dir-615-d|\
64         dir-615-h1)
65                 ucidef_set_led_default "status" "Status LED (amber)" "d-link:amber:status" "0"
66                 set_wifi_led "rt2800pci-phy0::radio"
67                 ;;
68         esr-9753)
69                 set_wifi_led "rt2800pci-phy0::radio"
70                 ;;
71         f5d8235-v1)
72                 set_usb_led "f5d8235-v1:blue:storage"
73                 ;;
74         f5d8235-v2)
75                 set_usb_led "f5d8235v2:blue:storage"
76                 ;;
77         fonera20n)
78                 set_usb_led "fonera20n:orange:usb"
79                 set_wifi_led "fonera20n:orange:wifi"
80                 ;;
81         all0239-3g|\
82         hw550-3g)
83                 set_usb_led "hw550-3g:green:usb"
84                 ;;
85         mofi3500-3gn)
86                 set_usb_led "mofi3500-3gn:green:usb"
87                 ;;
88         mzk-w300nh2)
89                 set_wifi_led "mzkw300nh2:amber:wlan"
90                 ;;
91         nw718)
92                 set_usb_led "nw718:amber:usb"
93                 ;;
94         omni-emb-hpm)
95                 ucidef_set_led_default "power" "POWER" "emb:orange:power" "1"
96                 ucidef_set_led_netdev "eth" "ETH" "emb:green:eth" "eth0"
97                 set_wifi_led "emb:green:wifi"
98                 ;;
99         sl-r7205)
100                 set_wifi_led "rt2800pci-phy0::radio"
101                 ;;
102         v11st-fe)
103                 set_wifi_led "rt2800pci-phy0::radio"
104                 ;;
105         w306r-v20)
106                 set_wifi_led "rt2800pci-phy0::radio"
107                 ;;
108         w502u)
109                 set_usb_led "alfa:blue:usb"
110                 set_wifi_led "rt2800pci-phy0::radio"
111                 ;;
112         wcr-150gn)
113                 set_usb_led "wcr150gn:amber:user"
114                 ;;
115         wnce2001)
116                 set_wifi_led "netgear:green:wlan"
117                 ;;
118 esac
119
120 ucidef_commit_leds
121
122 exit 0