Skip to content

Instantly share code, notes, and snippets.

@kripul
Last active November 26, 2021 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kripul/e3dfc510977e0c7eb0342d99b86ffb58 to your computer and use it in GitHub Desktop.
Save kripul/e3dfc510977e0c7eb0342d99b86ffb58 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in 1 2 3 4 5
do
test="$(curl -m 6 icanhazip.com)"
if [[ -n $test ]]; then
logger "Koneksi normal"
else
logger "Koneksi hilang, merestart STL"
printf '\n' | stl
sleep 10
fi
sleep 9
done
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment