Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tribou/5ded802332fc9f18277136f9aff8c0f4 to your computer and use it in GitHub Desktop.
Save tribou/5ded802332fc9f18277136f9aff8c0f4 to your computer and use it in GitHub Desktop.
#!/bin/bash
touch /tmp/Recent.xyz
while true
do
echo "Checking again..."
wget -q https://apt.dockerproject.org/repo/dists/ubuntu-xenial/main/binary-amd64/InRelease -O /tmp/InRelease.xyz
if test /tmp/InRelease.xyz -nt Recent.xyz; then
mplayer /usr/share/sounds/ubuntu/stereo/phone-incoming-call.ogg
fi
sleep 5;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment