shell-scripts/inet/is-back

13 lines
238 B
Text
Raw Normal View History

2023-07-06 11:07:16 -04:00
#!/usr/bin/bash
while true; do
if (ping archlinux.org -W 5 -c 1); then
echo "Ping responded; internet is up."
notify-send "Internet is up." --app-name="Ping Test" --icon="$(pwd)/is-back-icon.png"
exit 0
else
continue
fi
done