Skip to content

Instantly share code, notes, and snippets.

@dakira
Created July 8, 2020 18:56
Show Gist options
  • Save dakira/189c8820108190291a81bb3af601156c to your computer and use it in GitHub Desktop.
Save dakira/189c8820108190291a81bb3af601156c to your computer and use it in GitHub Desktop.
Let script wait for internet connectivity
#!/bin/sh
while ! ping -c 1 -W 1 8.8.8.8; do
sleep 1
done
curl -X POST https://maker.ifttt.com/trigger/pump/with/key/hfjrufjehgfhjgefgegf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment