#!/bin/bash

if ! [ "$(ping -c 4 google.com)" ] && [ "$(ping -c 4 yahoo.com)"] && ["$(ping -c 4 bing.com)"]; then
    nmcli nm wifi off
    nmcli nm wifi on
fi
#!/bin/bash

if ! [ "$(ping -c 4 google.com)" ] && [ "$(ping -c 4 yahoo.com)"]; then
    nmcli nm wifi off
    nmcli nm wifi on
fi
Remove Bing test from if statement.
Remove Bing test from if statement.
