Skip to content

Instantly share code, notes, and snippets.

@cp16net
Created September 1, 2015 01:09
Show Gist options
  • Select an option

  • Save cp16net/1b047f5e366390f5a972 to your computer and use it in GitHub Desktop.

Select an option

Save cp16net/1b047f5e366390f5a972 to your computer and use it in GitHub Desktop.
#!/bin/bash
while true; do
wget https://cloud-images.ubuntu.com/trusty/current/SHA256SUMS
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo "good"
notify-send "image is working again!"
break
else
echo "bad"
fi
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment