mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-25 03:38:25 +02:00
b47906964d
Add support for the Buffalo WZR-HP-G301NH. The only difference between it and the WZR-HP-G00NH is that it has a RTL8366RB instead of a RTL8366S. Since we don't do runtime detection of the switch, we need a separate machine definition for it. While we are at it, also rename the profile to reflect that it now is for more than one device. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26601 3c298f89-4303-0410-b956-a3cf2f4a3e73
38 lines
890 B
Bash
Executable File
38 lines
890 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
#
|
|
|
|
. /lib/ar71xx.sh
|
|
|
|
board=$(ar71xx_board_name)
|
|
|
|
wzrhpg300nh_set_leds() {
|
|
uci batch <<EOF
|
|
add system led
|
|
set system.@led[-1]='led'
|
|
set system.@led[-1].name='Wireless'
|
|
set system.@led[-1].sysfs='wzr-hp-g300nh:green:wireless'
|
|
set system.@led[-1].trigger='phy0tpt'
|
|
add system led
|
|
set system.@led[-1]='led'
|
|
set system.@led[-1].name='Router'
|
|
set system.@led[-1].sysfs='wzr-hp-g300nh:green:router'
|
|
set system.@led[-1].trigger='netdev'
|
|
set system.@led[-1].dev='eth1'
|
|
set system.@led[-1].mode='link tx rx'
|
|
add system led
|
|
set system.@led[-1]='led'
|
|
set system.@led[-1].name='USB'
|
|
set system.@led[-1].sysfs='wzr-hp-g300nh:blue:usb'
|
|
set system.@led[-1].trigger='usbdev'
|
|
set system.@led[-1].dev='1-1'
|
|
set system.@led[-1].interval='50'
|
|
commit system
|
|
EOF
|
|
}
|
|
|
|
if [ "${board}" == "wzr-hp-g300nh" || "${board}" == "wzr-hp-g301nh" ]; then
|
|
wzrhpg300nh_set_leds
|
|
fi
|