diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-23 14:27:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-23 14:27:10 +0000 |
commit | 20b3755c636143ca09bc13929ee30ccb6036b26c (patch) | |
tree | ddd07646b579c1b93b56fd20d7ab91590b76edb7 /target/linux/ramips/base-files/etc/uci-defaults/leds | |
parent | f3f765817f5e25368a7d6a3c8ed56dfc4a5b0a07 (diff) | |
download | upstream-20b3755c636143ca09bc13929ee30ccb6036b26c.tar.gz upstream-20b3755c636143ca09bc13929ee30ccb6036b26c.tar.bz2 upstream-20b3755c636143ca09bc13929ee30ccb6036b26c.zip |
ramips: add support for the Senao/EnGenius ESR-9753 board
Signed-off-by: Artur Wronowski <arteqw@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29603 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults/leds')
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/leds | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/leds b/target/linux/ramips/base-files/etc/uci-defaults/leds index e6c7e8456e..d0a9ac0711 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/leds @@ -16,12 +16,29 @@ commit system EOF } +set_wifi_led() { + local sysfs="$1" + + uci batch <<EOF +set system.wifi_led=led +set system.wifi_led.name='wifi' +set system.wifi_led.sysfs='$sysfs' +set system.wifi_led.trigger='netdev' +set system.wifi_led.dev='wlan0' +set system.wifi_led.mode='link rx tx' +commit system +EOF +} + board=$(ramips_board_name) case $board in bc2) set_usb_led "bc2:blue:usb" ;; + esr-9753) + set_wifi_led "rt2800pci-phy0::radio" + ;; fonera20n) set_usb_led "fonera20n:amber:usb" ;; |