2010-03-25 07:31:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
. /lib/ar71xx.sh
|
|
|
|
|
|
|
|
board=$(ar71xx_board_name)
|
|
|
|
|
2010-12-17 17:10:16 +00:00
|
|
|
tlwr1043nd_setup_leds() {
|
2010-03-25 07:31:17 +00:00
|
|
|
uci batch <<EOF
|
|
|
|
set system.wlan_led=led
|
|
|
|
set system.wlan_led.name='WLAN'
|
2011-11-01 11:20:44 +00:00
|
|
|
set system.wlan_led.sysfs='tp-link:green:wlan'
|
2011-05-08 21:38:48 +00:00
|
|
|
set system.wlan_led.trigger='phy0tpt'
|
2010-12-17 17:10:16 +00:00
|
|
|
set system.usb_led=led
|
|
|
|
set system.usb_led.name='USB'
|
2011-11-01 11:20:44 +00:00
|
|
|
set system.usb_led.sysfs='tp-link:green:usb'
|
2010-12-17 17:10:16 +00:00
|
|
|
set system.usb_led.trigger='usbdev'
|
|
|
|
set system.usb_led.dev='1-1'
|
|
|
|
set system.usb_led.interval='50'
|
2010-03-25 07:31:17 +00:00
|
|
|
commit system
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ "${board}" == "tl-wr1043nd" ]; then
|
2010-12-17 17:10:16 +00:00
|
|
|
tlwr1043nd_setup_leds
|
2010-03-25 07:31:17 +00:00
|
|
|
fi
|