![]() |
Wifi switcher - what settings to start/stop via cmd line?
Hi
I am wondering what the options are to stop and start wifi switcher via the command line? Reason being, I have fcron installed and will then set a schedule task to start at x time and then to turn it off at x time. Could save me battery quite alot. Scott |
Re: Wifi switcher - what settings to start/stop via cmd line?
if you've wifi-switcher installed, check /usr/sbin/wifi.sh
|
Re: Wifi switcher - what settings to start/stop via cmd line?
in a nutshell:
Code:
#!/bin/sh |
Re: Wifi switcher - what settings to start/stop via cmd line?
I get error
./wifiswitcher: line 3: syntax error: end of file unexpected (expecting "then" When I try and run it. Scott |
Re: Wifi switcher - what settings to start/stop via cmd line?
Try again with sh script.sh and also verify that the script was copied correctly. The script also needs chmod +x and be run as root.
|
Re: Wifi switcher - what settings to start/stop via cmd line?
Ok - resolved, error in my copy and paster.
|
All times are GMT. The time now is 19:42. |
vBulletin® Version 3.8.8