mirror of https://github.com/tteck/Proxmox.git
8 lines
183 B
Bash
8 lines
183 B
Bash
|
#!/usr/bin/env bash -ex
|
||
|
wget -q --tries=10 --timeout=5 --spider http://google.com
|
||
|
if [[ $? -eq 0 ]]; then
|
||
|
echo -e "Internet Online"
|
||
|
else
|
||
|
echo -e "Internet Offline"
|
||
|
fi
|