mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-12-11 11:02:20 +00:00
18 lines
283 B
Plaintext
18 lines
283 B
Plaintext
|
#!/bin/sh
|
||
|
# Runs from cron
|
||
|
|
||
|
if ( ping -c 1 -w 5 -q wookware.org ); then
|
||
|
#working
|
||
|
:
|
||
|
else
|
||
|
#rerun login
|
||
|
/root/fakenet/expo/gasthoflogin
|
||
|
sleep 10
|
||
|
if ( ping -c 1 -w 5 -q wookware.org ); then
|
||
|
#working now
|
||
|
:
|
||
|
else
|
||
|
#re-setup full network config
|
||
|
/root/fakenet/runfakenet
|
||
|
fi
|
||
|
fi
|