source: trunk/target/linux/ramips/base-files/etc/uci-defaults/leds @ 28571

Last change on this file since 28571 was 28571, checked in by juhosg, 5 years ago

ramips: Support for NexAira BC2

The preconfiguration of the USB LED has benn move to the
/etc/uci-defaults/leds script. [juhosg]

Signed-off-by: Adam Porter <porter.adam at gmail.com>

  • Property svn:executable set to *
File size: 583 bytes
Line 
1#!/bin/sh
2
3. /lib/ramips.sh
4
5set_usb_led() {
6        local sysfs="$1"
7
8        uci batch <<EOF
9set system.usb_led=led
10set system.usb_led.name='usb'
11set system.usb_led.sysfs='$sysfs'
12set system.usb_led.trigger='usbdev'
13set system.usb_led.dev='1-1'
14set system.usb_led.interval='50'
15commit system
16EOF
17}
18
19board=$(ramips_board_name)
20
21case $board in
22        bc2)
23                set_usb_led "bc2:blue:usb"
24                ;;
25        fonera20n)
26                set_usb_led "fonera20n:amber:usb"
27                ;;
28        hw550-3g)
29                set_usb_led "hw550-3g:green:usb"
30                ;;
31        mofi3500-3gn)
32                set_usb_led "mofi3500-3gn:green:usb"
33                ;;
34        nw718)
35                set_usb_led "nw718:amber:usb"
36                ;;
37esac
Note: See TracBrowser for help on using the repository browser.