hi people, i have the following code
#!/bin/sh
# Cisco Button
if [ $BUTTON = "ses" -a $ACTION = "released" ]
then
echo "f" > /proc/diag/led/ses_white
if [ "$(nvram get wl0_radio)" = "0" ]
then
logger -t wifi "Activating wi-fi"
nvram set wl0_radio=1
wifi
else
logger -t wifi "Activating wi-fi"
nvram set wl0_radio=0
wifi
fi
sleep 1
echo "0" > /proc/diag/led/ses_white
echo "1" > /proc/diag/led/power
fi
But when I reboot the wl0_radio is always on, any one have a idea what i did wrong?
May exist other script that tuns on wl0_radio,