ramips: fix Belkin F5D8235-v2 VLAN setup
[openwrt.git] / target / linux / ramips / base-files / etc / uci-defaults / leds
1 #!/bin/sh
2
3 . /lib/ramips.sh
4
5 set_usb_led() {
6 local sysfs="$1"
7
8 uci batch <<EOF
9 set system.usb_led=led
10 set system.usb_led.name='usb'
11 set system.usb_led.sysfs='$sysfs'
12 set system.usb_led.trigger='usbdev'
13 set system.usb_led.dev='1-1'
14 set system.usb_led.interval='50'
15 commit system
16 EOF
17 }
18
19 set_wifi_led() {
20 local sysfs="$1"
21
22 uci batch <<EOF
23 set system.wifi_led=led
24 set system.wifi_led.name='wifi'
25 set system.wifi_led.sysfs='$sysfs'
26 set system.wifi_led.trigger='netdev'
27 set system.wifi_led.dev='wlan0'
28 set system.wifi_led.mode='link rx tx'
29 commit system
30 EOF
31 }
32
33 board=$(ramips_board_name)
34
35 case $board in
36 all0256n)
37 set_wifi_led "rt2800pci-phy0::radio"
38 ;;
39 bc2)
40 set_usb_led "bc2:blue:usb"
41 ;;
42 esr-9753)
43 set_wifi_led "rt2800pci-phy0::radio"
44 ;;
45 f5d8235-v1)
46 set_usb_led "f5d8235-v1:blue:storage"
47 ;;
48 f5d8235-v2)
49 set_usb_led "f5d8235v2:blue:storage"
50 ;;
51 fonera20n)
52 set_usb_led "fonera20n:amber:usb"
53 ;;
54 hw550-3g)
55 set_usb_led "hw550-3g:green:usb"
56 ;;
57 mofi3500-3gn)
58 set_usb_led "mofi3500-3gn:green:usb"
59 ;;
60 nw718)
61 set_usb_led "nw718:amber:usb"
62 ;;
63 w502u)
64 set_usb_led "alfa:blue:usb"
65 set_wifi_led "rt2800pci-phy0::radio"
66 ;;
67 wcr-150gn)
68 set_usb_led "wcr150gn:amber:user"
69 ;;
70 esac
This page took 0.041989 seconds and 5 git commands to generate.