diff options
Diffstat (limited to 'test/set-domains')
-rwxr-xr-x | test/set-domains | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/set-domains b/test/set-domains new file mode 100755 index 00000000..c45034c8 --- /dev/null +++ b/test/set-domains @@ -0,0 +1,20 @@ +#!/usr/bin/python + +import sys +import dbus + +if (len(sys.argv) < 2): + print "Usage: %s <service> [domain*]" % (sys.argv[0]) + sys.exit(1) + +bus = dbus.SystemBus() +path = "/profile/default/" + sys.argv[1] +service = dbus.Interface(bus.get_object('org.moblin.connman', path), + 'org.moblin.connman.Service') + +properties = service.GetProperties() + +print "Setting domains to %s" % (sys.argv[2:]) + +service.SetProperty("Domains.Configuration", + dbus.Array(sys.argv[2:], signature=dbus.Signature('s'))) |