olsrd-adhoc-setup: try using "nmcli dev disconnect" instead of "wifi off" since somet...
authorHans-Christoph Steiner <hans@eds.org>
Tue, 26 Jun 2012 02:24:23 +0000 (22:24 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 26 Jun 2012 02:24:23 +0000 (22:24 -0400)
files/olsrd-adhoc-setup

index 7d93ede..e5553f1 100755 (executable)
@@ -34,7 +34,7 @@ echo "    attaching to '$essid' with BSSID '$bssid'"
 
 if [ -x /usr/bin/nmcli ]; then
        echo -n "Turning off NetworkManager wifi control: "
-    /usr/bin/nmcli nm wifi off
+    /usr/bin/nmcli dev disconnect iface $wlan
     echo "done"
 fi