Created
May 17, 2016 09:50
-
-
Save karantir/44cabe08a46c3aeab6a9be9a3f387352 to your computer and use it in GitHub Desktop.
Simple init.d script for OpenWRT based router, to keep alive Yota 4G Interned over USB stick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
# Yota 4G Internet keep alive script | |
START=10 | |
STOP=15 | |
start() { | |
echo 'starting' | |
ping www.ru | |
while [ $? -ne 0 ]; do | |
sleep 3 | |
ping www.ru | |
done | |
} | |
stop() { | |
echo 'stopping' | |
} | |
boot() { | |
start | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment