mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ramips: combine led setup for all boards in one file
This removes unnecessary duplication and simplifies led setup for new boards. It would be a one line change most likely. Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28569 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -27,23 +27,10 @@ commit network
|
||||
EOF
|
||||
}
|
||||
|
||||
nw718_set_leds() {
|
||||
uci batch <<EOF
|
||||
set system.usb_led=led
|
||||
set system.usb_led.name='USB'
|
||||
set system.usb_led.sysfs='nw718:amber:usb'
|
||||
set system.usb_led.trigger='usbdev'
|
||||
set system.usb_led.dev='1-1'
|
||||
set system.usb_led.interval='50'
|
||||
commit system
|
||||
EOF
|
||||
}
|
||||
|
||||
. /lib/ramips.sh
|
||||
|
||||
board=$(ramips_board_name)
|
||||
|
||||
if [ "${board}" == "nw718" ]; then
|
||||
nw718_set_leds
|
||||
nw718_set_macs
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user