This is an old revision of the document!
I use below code in TP-WR1043ND, It work.
<shell> /etc/config/system </shell>
<shell> config 'button' 'wifionoff' option 'button' 'BTN_1' option 'action' 'released' option 'handler' '/sbin/wifionoff' option 'min' '0' option 'max' '2'
config 'led' 'led_onoff' option 'sysfs' 'tl-wr1043nd:green:qss' option 'trigger' 'timer' option 'mode' 'link' option 'default' '1' option 'delayon' '2000' option 'delayoff' '3000' </shell>
<shell> /sbin/wifionoff </shell>
<shell> #!/bin/sh SW=$(uci -q get wireless.@wifi-device[0].disabled)
if [ “$SW” == “0” ] ; then echo 0 > /sys/class/leds/tl-wr1043nd\:green\:qss/brightness else echo 1 > /sys/class/leds/tl-wr1043nd\:green\:qss/brightness echo timer > /sys/class/leds/tl-wr1043nd\:green\:qss/trigger echo 3000 > /sys/class/leds/tl-wr1043nd\:green\:qss/delay_off echo 2000 > /sys/class/leds/tl-wr1043nd\: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 </shell> executable the wifionoff
<shell> chmod + x /sbin/wifionoff </shell>
When wifi in on : qss led blink “slowly”