2010-02-19 13:52:25 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
. /lib/ar71xx.sh
|
|
|
|
|
|
|
|
board=$(ar71xx_board_name)
|
|
|
|
|
2010-11-04 20:53:18 +02:00
|
|
|
wndr3700_set_wan_led() {
|
2010-02-19 13:52:25 +02:00
|
|
|
uci batch <<EOF
|
2010-11-04 20:53:18 +02:00
|
|
|
set system.wan_led=led
|
2010-02-19 13:52:25 +02: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 19:10:16 +02: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 13:52:25 +02:00
|
|
|
commit system
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
2011-01-26 22:35:42 +02:00
|
|
|
if [ "${board}" == "wndr3700" -o "${board}" == "wndr3700v2" ]; then
|
2010-11-04 20:53:18 +02:00
|
|
|
wndr3700_set_wan_led
|
2010-02-19 13:52:25 +02:00
|
|
|
fi
|