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 | 2cb946f5b4ebb720739b4dbb80c7821843f22ee5 (patch) | |
tree | e47c13a3c4236f3b7972ea14405b1afc5f7d1708 /target/linux/ramips/base-files/etc | |
parent | 03bce343840c3936cce79e42a8e6973870807aea (diff) | |
download | master-31e0f0ae-2cb946f5b4ebb720739b4dbb80c7821843f22ee5.tar.gz master-31e0f0ae-2cb946f5b4ebb720739b4dbb80c7821843f22ee5.tar.bz2 master-31e0f0ae-2cb946f5b4ebb720739b4dbb80c7821843f22ee5.zip |
ramips: add support for the Senao/EnGenius ESR-9753 board
Signed-off-by: Artur Wronowski <arteqw@gmail.com>
SVN-Revision: 29603
Diffstat (limited to 'target/linux/ramips/base-files/etc')
4 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index e0a4a39218..a150cc26d8 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -33,6 +33,9 @@ get_status_led() { dir-300-b1 | dir-600-b1 | dir-600-b2) status_led="d-link:green:status" ;; + esr-9753) + status_led="esr-9753:orange:power" + ;; fonera20n) status_led="fonera20n:green:power" ;; diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index d6db35c044..fa6607fd7f 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -47,6 +47,7 @@ case "$FIRMWARE" in argus-atp52b | \ bc2 | \ + esr-9753 | \ fonera20n | \ hw550-3g | \ mofi3500-3gn | \ 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" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index f78f9bf9dc..bb1d90ef48 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -68,6 +68,7 @@ ramips_setup_macs() wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1) ;; + esr-9753 | \ nbg-419n) lan_mac=$(ramips_get_mac_binary factory 4) wan_mac=$(ramips_get_mac_binary factory 40) |