How to stop/start Wifi programmatically

All,

Is there a way, I can control Start/Stop WiFi Arduino from Linino

Do we know, which gpio#PinNumber to use.

Thank you very much in advance.

Regards

BREL

There will be many ways to do this but

uci set wireless.radio0.disabled=1
uci commit
/etc/init.d/network restart

Should do the trick to kill it, you'll have to find any thing that re-enables wifi and disable it, see the recent post where someone moved out of range of their AP and the Yun started it's own AP back up on 192.168.240.1

NoblePepper.

Followed all the way,

For some reason, I am not able to run the network command
I see it is there under /etc/init.d/network

when I enter this
/etc/init.d/network restart
It says, network not found...

attached screen shot for your reference.

Any clues.

Thank you very much in advance.

Regards

BREL

Well, no, you didn't enter /etc/init.d/network restart it looks to me like you did

cd /etc/init.d
ls
network

So, you need to give network an argument or it will complain.

Also, echo $PATH
gives me /bin:/sbin:/usr/bin:/usr/sbin so ash isn't going to find a program named network any way. From /etc/init.d you could run ./network restart but I usually just type it as in my original instructions from where ever I am. Learn to use tab completion and you'll save yourself a lot of keystrokes. I would actually type /e<TAB>/i<TAB>.<TAB>/n<TAB> restart

Here is a fairly good guide to the linux command line http://vic.gedris.org/Manual-ShellIntro/1.2/ShellIntro.pdf There are a few features that are missing on OpenWRT/busybox/ash but most of the common stuff is there one thing I dearly miss is command history (ctrl-r).

Super

This is working now

Thank you very much NoblePepper.

BRE