6 if (len(sys.argv) < 2):
7 print "Usage: %s <ssid> [passphrase] [security]" % (sys.argv[0])
10 bus = dbus.SystemBus()
12 manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
13 "org.moblin.connman.Manager")
15 print "Attempting to connect service %s" % (sys.argv[1])
19 security = sys.argv[3]
22 passphrase = sys.argv[2]
27 path = manager.ConnectService(({ "Type": "wifi", "Mode": "managed",
30 "Passphrase": passphrase }));
31 print "Service path is %s" %(path)