I am using the AR750 Slate tethered to my Android phone for internet, to monitor surveillance cameras at a small cabin. It works fine until I have a power outage. When power is restored the cable from the router to the phone has to be manually unplugged/plugged back in again to enable tether. So I lose my cameras until I visit the cabin again and do it manually.
I contacted tech support and was told that it would be possible to write a script in the router. This was there response…
"You can control the power of the USB port. This will be the same as unplug and replug the USB cable. Pls note, I am not sure if 0 or 1 is power on. You may need to try.
So if you can write a script and let it run after the router is powered (put in the end of /etc/rc.local with & at the end), using it to determine the Internet like 1 minute per check. If no Internet, just reset the USB power."
Anyone familiar with writing a shell script that could help out with this? I can do the testing but don’t know where to start with writing the script.
TIA
Can the writing of the script and adding to scheduled task (cron) all be done using WinSCP? Sorry for dumb questions but totally new to this. I have Putty and WinSCP up and running. Any guides you can point me to, that will help me get this script written and scheduled on my router?