mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Fuck cloudflare
This commit is contained in:
parent
ac71b098e4
commit
3aca7c0eac
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ services='Put here the service names that you want to restart if internet connec
|
|||
if command -v ping > /dev/null; then
|
||||
# Check internet connection and if not OK then restart all networking services
|
||||
echo "Testing your connection..."
|
||||
if ! ping -q -c 1 -W 1 1.1.1.1 > /dev/null; then
|
||||
if ! ping -q -c 1 -W 1 9.9.9.9 > /dev/null; then
|
||||
echo "Your connection is not working, restarting your network services: $services"
|
||||
sudo systemctl restart $services
|
||||
if [ $? -eq 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue