ramips: combine led setup for all boards in one file
[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 board=$(ramips_board_name)
20
21 case $board in
22 fonera20n)
23 set_usb_led "fonera20n:amber:usb"
24 ;;
25 hw550-3g)
26 set_usb_led "hw550-3g:green:usb"
27 ;;
28 mofi3500-3gn)
29 set_usb_led "mofi3500-3gn:green:usb"
30 ;;
31 nw718)
32 set_usb_led "nw718:amber:usb"
33 ;;
34 esac
This page took 0.04445 seconds and 5 git commands to generate.