Separate elements in device list
[connman] / test / disable-network
index 12da1e8..eede449 100755 (executable)
@@ -18,8 +18,8 @@ for path in elements:
                if (properties["Type"] != "network"):
                        continue
 
-               if (properties["Connected"] == dbus.Boolean(1)):
-                       print "Disconnecting %s" % (path)
-                       element.Disconnect()
+               if (properties["Enabled"] == dbus.Boolean(1)):
+                       print "Disabling %s" % (path)
+                       element.Disable()
        except:
                pass