2010-02-19 11:52:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
. /lib/ar71xx.sh
|
|
|
|
|
|
|
|
board=$(ar71xx_board_name)
|
|
|
|
|
2010-11-04 18:53:18 +00:00
|
|
|
wndr3700_set_wan_led() {
|
2010-02-19 11:52:25 +00:00
|
|
|
uci batch <<EOF
|
2010-11-04 18:53:18 +00:00
|
|
|
set system.wan_led=led
|
2010-02-19 11:52:25 +00:00
|
|
|
set system.wan_led.sysfs='wndr3700:green:wan'
|
|
|
|
set system.wan_led.name='WAN LED (green)'
|
|
|
|
set system.wan_led.default='0'
|
2010-12-17 17:10:16 +00:00
|
|
|
set system.usb_led=led
|
|
|
|
set system.usb_led.name='USB'
|
|
|
|
set system.usb_led.sysfs='wndr3700:green:usb'
|
|
|
|
set system.usb_led.trigger='usbdev'
|
|
|
|
set system.usb_led.dev='1-1'
|
|
|
|
set system.usb_led.interval='50'
|
2010-02-19 11:52:25 +00:00
|
|
|
commit system
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ "${board}" == "wndr3700" ]; then
|
2010-11-04 18:53:18 +00:00
|
|
|
wndr3700_set_wan_led
|
2010-02-19 11:52:25 +00:00
|
|
|
fi
|