Reply
Thread Tools
Posts: 25 | Thanked: 3 times | Joined on Aug 2010
#1
I'm looking for a command that will turn on/off wifi, that I can schedule to run with Alarmed. I'd like to turn off wifi when I'm out of the house at work during the week, and turn it back on when I come home in the evenings. Searched but found nothing...
Thanks.
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#2
 
Posts: 25 | Thanked: 3 times | Joined on Aug 2010
#3
Already did, couldn't see a wifi command?
 
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#4
Originally Posted by yosarian View Post
Already did, couldn't see a wifi command?
check again. they're basically:
-- wifioff
-- wifion
 
Posts: 25 | Thanked: 3 times | Joined on Aug 2010
#5
Thanks, but doesn't work for me. After running sudo phone-control --wifioff or wifion. I get:

if config: bad address 'wlan0'
 
PathFinder@9GS's Avatar
Posts: 164 | Thanked: 79 times | Joined on Jul 2010
#6
switch off : sudo ifconfig wlan0 down
switch on : sudo ifconfig wlan0 up
 
Posts: 25 | Thanked: 3 times | Joined on Aug 2010
#7
Thanks, but also doesn't seem to work?

Edit: Hmm actually it does seem to work, just the icon doesnt update, and when you enable it again it doesnt auto connect.

Last edited by yosarian; 2010-08-19 at 21:21.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:51.