Cornelius Koelbel wrote: > Hi Ralf, > > I do it this way. I also toggle an LED to show, if it is on or off. > Unfortunately togggling the WLAN LED does not work in my case...
Thanks Cornelius, unfortunately it doesn't work here. The script is never called when I press a button. It's chmod 755. Also I wonder why there is no /proc/diag/led here at all. Maybe my FreeWRT is just too old - I build it from SVN 1.0.3 last December ;-) Thank you anyway, Ralf > > Kind regards > Cornelius > > --snip-- > [EMAIL PROTECTED]:~ # cat /etc/hotplug.d/button/ses > # default action: reboot forcibly if RESET button pressed for four seconds > case $BUTTON:$ACTION in > ses:released) > /sbin/woggle > ;; > esac > --snap-- > > --snip-- > [EMAIL PROTECTED]:~ # cat /sbin/woggle > #!/bin/sh > > WIFI_RADIOSTATUS=$(wlc radio) > case "$WIFI_RADIOSTATUS" in > 0) > wlc radio 1 > echo 1 > /proc/diag/led/power ;; > 1) > wlc radio 0 > echo 0 > /proc/diag/led/power ;; > esac > --snip-- > > > > Ralf Sternberg schrieb: >> Hi Cornelius, >> >> Cornelius Koelbel wrote: >> >>> I am using the EZ setupBotton for switching on and off WLAN. >>> You could use this button for mounting/unmounting. >> Could you provide your script to react on button presses? I created a >> /etc/hotplug.d/button/01-halt script but it is never called. >> >> Thanks, Ralf >> _______________________________________________ >> freewrt-users mailing list >> freewrt-users@freewrt.org >> https://www.freewrt.org/lists/listinfo/freewrt-users >> _______________________________________________ freewrt-users mailing list freewrt-users@freewrt.org https://www.freewrt.org/lists/listinfo/freewrt-users