mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -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"
|
||||
;;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user