net check in newsup

This commit is contained in:
Luke Smith 2018-10-14 13:05:07 -04:00
parent 2c44ee2b73
commit 39375e5f8f

View file

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
ping -q -t 1 -c 1 `ip r | grep -m 1 default | cut -d ' ' -f 3` >/dev/null || exit
echo "📰 🔃" > ~/.newsup echo "📰 🔃" > ~/.newsup
pkill -RTMIN+6 i3blocks pkill -RTMIN+6 i3blocks
printf "Loading new RSS entries for newsboat...\\n" printf "Loading new RSS entries for newsboat...\\n"