[ramips] add profile for the Edimax 3g-6200NL board
[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         dir-300-b1|\
52         dir-600-b1|\
53         dir-600-b2|\
54         dir-620-a1)
55                 # ANDed with vlan switch port 4 led state
56                 ucidef_set_led_default "wan" "WAN LED (amber)" "d-link:amber:wan" "1"
57                 set_wifi_led "rt2800pci-phy0::radio"
58                 ;;
59         dir-615-d|\
60         dir-615-h1)
61                 ucidef_set_led_default "status" "Status LED (amber)" "d-link:amber:status" "0"
62                 set_wifi_led "rt2800pci-phy0::radio"
63                 ;;
64         esr-9753)
65                 set_wifi_led "rt2800pci-phy0::radio"
66                 ;;
67         f5d8235-v1)
68                 set_usb_led "f5d8235-v1:blue:storage"
69                 ;;
70         f5d8235-v2)
71                 set_usb_led "f5d8235v2:blue:storage"
72                 ;;
73         fonera20n)
74                 set_usb_led "fonera20n:orange:usb"
75                 set_wifi_led "fonera20n:orange:wifi"
76                 ;;
77         all0239-3g|\
78         hw550-3g)
79                 set_usb_led "hw550-3g:green:usb"
80                 ;;
81         mofi3500-3gn)
82                 set_usb_led "mofi3500-3gn:green:usb"
83                 ;;
84         mzk-w300nh2)
85                 set_wifi_led "mzkw300nh2:amber:wlan"
86                 ;;
87         nw718)
88                 set_usb_led "nw718:amber:usb"
89                 ;;
90         omni-emb-hpm)
91                 ucidef_set_led_default "power" "POWER" "emb:orange:power" "1"
92                 ucidef_set_led_netdev "eth" "ETH" "emb:green:eth" "eth0"
93                 set_wifi_led "emb:green:wifi"
94                 ;;
95         sl-r7205)
96                 set_wifi_led "rt2800pci-phy0::radio"
97                 ;;
98         v11st-fe)
99                 set_wifi_led "rt2800pci-phy0::radio"
100                 ;;
101         w306r-v20)
102                 set_wifi_led "rt2800pci-phy0::radio"
103                 ;;
104         w502u)
105                 set_usb_led "alfa:blue:usb"
106                 set_wifi_led "rt2800pci-phy0::radio"
107                 ;;
108         wcr-150gn)
109                 set_usb_led "wcr150gn:amber:user"
110                 ;;
111 esac
112
113 ucidef_commit_leds
114
115 exit 0