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'
|
|
|
|
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
|