examples: update 70-wifi-wired-exclusive.sh for new nmcli syntax

This commit is contained in:
Jiří Klimeš 2013-07-15 15:52:23 +02:00
parent 9dd2c58e99
commit 8de9bfcf7d

View file

@ -10,9 +10,11 @@ enable_disable_wifi ()
{
result=$(nmcli dev | grep "802-3-ethernet" | grep -w "connected")
if [ -n "$result" ]; then
nmcli nm wifi off
nmcli radio wifi off
#with older nmcli, use nmcli nm wifi off
else
nmcli nm wifi on
nmcli radio wifi on
#with older nmcli, use nmcli nm wifi on
fi
}