EXTRA_DIST = get-state list-profiles list-services connect-service \
list-connections select-connection \
list-devices enable-device disable-device start-scanning \
- list-networks select-network disable-network create-network \
- set-passphrase set-address \
- connect-network disconnect-network join-network \
+ list-networks set-passphrase set-address \
simple-agent show-introspection test-compat test-manager \
test-connman monitor-connman monitor-services debug-connman
+++ /dev/null
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
- print "Usage: %s <network>" % (sys.argv[0])
- sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Device")
-
- properties = device.GetProperties()
-
- if properties["Type"] not in ["wifi", "wimax",
- "bluetooth", "cellular"]:
- continue
-
- for path in properties["Networks"]:
- network = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Network")
-
- properties = network.GetProperties()
-
- dev = path[path.rfind("/") + 1:]
-
- if "Name" not in properties.keys():
- continue
-
- if dev == sys.argv[1] or properties["Name"] == sys.argv[1]:
- print "Connecting %s" % (path)
- network.Connect()
+++ /dev/null
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
- print "Usage: %s <network>" % (sys.argv[0])
- sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Device")
-
- properties = device.GetProperties()
-
- if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
- continue;
-
- path = device.CreateNetwork({ "WiFi.SSID": sys.argv[1] });
+++ /dev/null
-#!/usr/bin/python
-
-import dbus
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Device")
-
- properties = device.GetProperties()
-
- if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
- continue;
-
- print "[ %s ]" % (path)
-
- for path in properties["Networks"]:
- network = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Network")
-
- properties = network.GetProperties()
-
- if (properties["Connected"] == dbus.Boolean(1)):
- print "Disconnecting %s" % (path)
- network.Disconnect()
+++ /dev/null
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
- print "Usage: %s <network>" % (sys.argv[0])
- sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Device")
-
- properties = device.GetProperties()
-
- if properties["Type"] not in ["wifi", "wimax",
- "bluetooth", "cellular"]:
- continue
-
- for path in properties["Networks"]:
- network = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Network")
-
- properties = network.GetProperties()
-
- dev = path[path.rfind("/") + 1:]
-
- if "Name" not in properties.keys():
- continue
-
- if dev == sys.argv[1] or properties["Name"] == sys.argv[1]:
- print "Disconnecting %s" % (path)
- network.Disconnect()
+++ /dev/null
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
- print "Usage: %s <ssid> [passphrase] [security]" % (sys.argv[0])
- sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Device")
-
- properties = device.GetProperties()
-
- if (properties["Type"] != "wifi"):
- continue;
-
- print "[ %s ]" % (path)
- print "Attempting to join %s" % (sys.argv[1])
-
- if len(sys.argv) > 2:
- if len(sys.argv) > 3:
- security = sys.argv[3]
- else:
- security = "rsn"
- passphrase = sys.argv[2]
- else:
- security = "none"
- passphrase = ""
-
- device.JoinNetwork({ "WiFi.Mode": "managed",
- "WiFi.SSID": sys.argv[1],
- "WiFi.Security": security,
- "WiFi.Passphrase": passphrase })
+++ /dev/null
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
- print "Usage: %s <network>" % (sys.argv[0])
- sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Device")
-
- properties = device.GetProperties()
-
- if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
- continue
-
- print "[ %s ]" % (path)
-
- for path in properties["Networks"]:
- network = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Network")
-
- properties = network.GetProperties()
-
- if "Name" not in properties.keys():
- continue
-
- if (properties["Connected"] == dbus.Boolean(1)):
- continue
-
- if (properties["Name"] == sys.argv[1]):
- print "Connecting %s" % (path)
- network.Connect()