From 8de9bfcf7dc337fcaaf570b0ed1bf65ad0c65913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 15 Jul 2013 15:52:23 +0200 Subject: [PATCH] examples: update 70-wifi-wired-exclusive.sh for new nmcli syntax --- examples/dispatcher/70-wifi-wired-exclusive.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/dispatcher/70-wifi-wired-exclusive.sh b/examples/dispatcher/70-wifi-wired-exclusive.sh index 501f159efc..f295260b8d 100755 --- a/examples/dispatcher/70-wifi-wired-exclusive.sh +++ b/examples/dispatcher/70-wifi-wired-exclusive.sh @@ -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 }