summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2013-07-15 15:52:23 +0200
committerJiří Klimeš <jklimes@redhat.com>2013-07-15 15:52:23 +0200
commit8de9bfcf7dc337fcaaf570b0ed1bf65ad0c65913 (patch)
treefc6c940918fe6d42057cf42553ef4e19a1053f98 /examples
parent9dd2c58e99f6e322083d0af6c88a071ece5b4957 (diff)
downloadNetworkManager-8de9bfcf7dc337fcaaf570b0ed1bf65ad0c65913.tar.gz
examples: update 70-wifi-wired-exclusive.sh for new nmcli syntax
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dispatcher/70-wifi-wired-exclusive.sh6
1 files 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
}