Switch network checks to use github rather than google
This commit is contained in:
parent
3972b35c31
commit
63814f6a29
@ -7,7 +7,7 @@ wireless_connected=""
|
||||
ethernet_connected=""
|
||||
|
||||
while true; do
|
||||
if ping -c1 www.google.com &>/dev/null; then
|
||||
if ping -c1 www.github.com &>/dev/null; then
|
||||
if (( count < 1 )); then
|
||||
ID="$(ip link | awk '/state UP/ {print $2}')"
|
||||
((count++))
|
||||
|
@ -8,26 +8,26 @@ total() { UPD=$(checkupdates | wc -l) ;}
|
||||
while true; do
|
||||
total
|
||||
if hash notify-send &>/dev/null; then
|
||||
if (( $UPD > 50 )); then
|
||||
if (( UPD > 50 )); then
|
||||
notify-send -u critical -i $ICON "You really need to update!!" "$UPD New packages"
|
||||
elif (( $UPD > 25 )); then
|
||||
elif (( UPD > 25 )); then
|
||||
notify-send -u normal -i $ICON "You should update soon" "$UPD New packages"
|
||||
elif (( $UPD > 2 )); then
|
||||
elif (( UPD > 2 )); then
|
||||
notify-send -u low -i $ICON "$UPD New packages"
|
||||
fi
|
||||
fi
|
||||
|
||||
while (( $UPD > 0 )); do
|
||||
if (( $UPD == 1 )); then
|
||||
while (( UPD > 0 )); do
|
||||
if (( UPD == 1 )); then
|
||||
echo "$UPD Update"
|
||||
elif (( $UPD > 1 )); then
|
||||
elif (( UPD > 1 )); then
|
||||
echo "$UPD Updates"
|
||||
fi
|
||||
sleep 10
|
||||
total
|
||||
done
|
||||
|
||||
while (( $UPD == 0 )); do
|
||||
while (( UPD == 0 )); do
|
||||
echo $BAR_ICON
|
||||
sleep 1800
|
||||
total
|
||||
|
Reference in New Issue
Block a user