7 print "Usage: %s <service> <target service>" % (sys.argv[0])
10 if (len(sys.argv) < 2):
14 bus = dbus.SystemBus()
15 path = "/net/connman/service/" + sys.argv[1]
16 service = dbus.Interface(bus.get_object('net.connman', path),
17 'net.connman.Service')
19 path2 = "/net/connman/service/" + sys.argv[2]
20 service2 = dbus.Interface(bus.get_object('net.connman', path2),
21 'net.connman.Service')
23 print "Moving %s before %s" % (sys.argv[1], sys.argv[2])
25 service.MoveBefore(service2)