like http://www.wl500g.info/showthread.php?t=12620&highlight=turn+radio explains /usr/local/sbin/ez-setup has to be modified like this:
#!/bin/sh
WLAN=`wl isup`
time=`/bin/date '+%b %e %H:%M:%S'`
if [ "$WLAN" = "0" ]; then
echo "$time: EZ-SETUP pressed: wireless turned ON" >> /tmp/syslog.log && wl radio on
else
echo "$time: EZ-SETUP pressed: wireless turned OFF" >> /tmp/syslog.log && wl radio off
fi
make it executeable:
chmod +x /usr/local/sbin/ez-setup
and do a save / reboot:
flashfs save && flashfs commit && flashfs enable && reboot
#!/bin/sh
WLAN=`wl isup`
time=`/bin/date '+%b %e %H:%M:%S'`
if [ "$WLAN" = "0" ]; then
echo "$time: EZ-SETUP pressed: wireless turned ON" >> /tmp/syslog.log && wl radio on
else
echo "$time: EZ-SETUP pressed: wireless turned OFF" >> /tmp/syslog.log && wl radio off
fi
make it executeable:
chmod +x /usr/local/sbin/ez-setup
and do a save / reboot:
flashfs save && flashfs commit && flashfs enable && reboot
Kommentare