I use below code in TP-WR1043ND, It work.
/etc/config/system
config button 'wifionoff'
option button 'wps'
option action 'released'
option handler '/sbin/wifionoff'
option min '0'
option max '5'
config led 'led_onoff'
option sysfs 'tp-link:green:qss'
option trigger 'timer'
option mode 'link'
option default '1'
option delayon '2000'
option delayoff '2000'
-------------------------------------------------------------------------
/sbin/wifionoff
#!/bin/sh
SW=$(uci -q get wireless.@wifi-device[0].disabled)
if [ "$SW" == "0" ] ; then
echo 0 > /sys/class/leds/tp-link\:green\:qss/brightness
echo 0 > /sys/class/leds/tp-link\:green\:qss/brightness
else
echo 1 > /sys/class/leds/tp-link\:green\:qss/brightness
echo timer > /sys/class/leds/tp-link\:green\:qss/trigger
echo 2000 > /sys/class/leds/tp-link\:green\:qss/delay_off
echo 2000 > /sys/class/leds/tp-link\:green\:qss/delay_on
fi
[ "$SW" == "1" ] && uci set wireless.@wifi-device[0].disabled=0
[ "$SW" == "1" ] || uci set wireless.@wifi-device[0].disabled=1
wifi
--------------------------------------------------------------------------------------------
executable the wifionoff :
chomd +x /sbin/wifionoff
When wifi in on : qss led blink "slowly"
TP-1043ND Qss button on/off wifi - Update for ver 1.5.8
Moderator: Moderators
TP-1043ND Qss button on/off wifi - Update for ver 1.5.8
Last edited by z1022 on Sun Nov 18, 2012 5:20 am, edited 2 times in total.
-
- Posts: 12
- Joined: Wed Feb 05, 2014 1:59 pm
Re: TP-1043ND Qss button on/off wifi - Update for ver 1.5.8
I can confirm it works on version 1.6.2 as well.
-
- Posts: 1
- Joined: Sun Oct 12, 2014 9:03 pm
Re: TP-1043ND Qss button on/off wifi - Update for ver 1.5.8
I am very optimistic about you made the post.
And I like.
I hope we can become friends, thank you!
_______________________________
If you want to know more things about the ESO Gold and Cheap ESO Gold
Go to our home page:http://www.esosale.com/
And I like.
I hope we can become friends, thank you!
_______________________________
If you want to know more things about the ESO Gold and Cheap ESO Gold
Go to our home page:http://www.esosale.com/