EXTRA_DIST = list-profiles list-elements monitor-elements monitor-state \
get-state select-network disable-network monitor-networks \
- start-scanning simple-agent \
+ enable-device disable-device start-scanning simple-agent \
show-introspection test-compat test-supplicant
MAINTAINERCLEANFILES = Makefile.in
--- /dev/null
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+ 'org.moblin.connman.Manager')
+
+elements = manager.ListElements()
+
+for path in elements:
+ element = dbus.Interface(bus.get_object('org.moblin.connman', path),
+ 'org.moblin.connman.Element')
+
+ properties = element.GetProperties()
+
+ if (properties["Type"] != "device"):
+ continue
+
+ print "[ %s ]" % (path)
+
+ element.Disable()
--- /dev/null
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+ 'org.moblin.connman.Manager')
+
+elements = manager.ListElements()
+
+for path in elements:
+ element = dbus.Interface(bus.get_object('org.moblin.connman', path),
+ 'org.moblin.connman.Element')
+
+ properties = element.GetProperties()
+
+ if (properties["Type"] != "device"):
+ continue
+
+ print "[ %s ]" % (path)
+
+ element.Enable()