diff options
Diffstat (limited to 'setup/recoscript.sh')
| -rw-r--r-- | setup/recoscript.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/setup/recoscript.sh b/setup/recoscript.sh index d3911dd..7e00a25 100644 --- a/setup/recoscript.sh +++ b/setup/recoscript.sh @@ -4,11 +4,10 @@ user=user pass=2235 # #check internet connection -wget -q --spider https://github.com -if [ $? -eq 0 ]; then +if ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` > /dev/null ; then echo 'Internet connection found' else - echo 'Error, either your device is off-line or https://github.com is off-line.' + echo 'Error, either your device appears to be off-line.' exit fi |
