2020-03-08 10:19:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-03-23 20:01:17 +01:00
|
|
|
# killall wificheck.sh &> /dev/null
|
2020-03-08 10:19:00 +01:00
|
|
|
|
|
|
|
if ping -w 1 archlinux.org &> /dev/null
|
|
|
|
then
|
2020-03-23 20:01:17 +01:00
|
|
|
printf "$(checkupdates | wc -l)"
|
2020-03-08 10:19:00 +01:00
|
|
|
else
|
2020-03-23 20:01:17 +01:00
|
|
|
echo " "
|
2020-03-08 10:19:00 +01:00
|
|
|
fi
|