ramips: rt305x: add support for the ALFA Networks W502U (R36) board
[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 bc2)
37 set_usb_led "bc2:blue:usb"
38 ;;
39 esr-9753)
40 set_wifi_led "rt2800pci-phy0::radio"
41 ;;
42 fonera20n)
43 set_usb_led "fonera20n:amber:usb"
44 ;;
45 hw550-3g)
46 set_usb_led "hw550-3g:green:usb"
47 ;;
48 mofi3500-3gn)
49 set_usb_led "mofi3500-3gn:green:usb"
50 ;;
51 nw718)
52 set_usb_led "nw718:amber:usb"
53 ;;
54 w502u)
55 set_usb_led "alfa:blue:usb"
56 set_wifi_led "rt2800pci-phy0::radio"
57 ;;
58 esac
This page took 0.044052 seconds and 5 git commands to generate.