blob: d7551a110b3ce89f36d59d5a1e28d6b3e5811de0 [file] [log] [blame] [edit]
#!/usr/bin/python
import sys
import dbus
if (len(sys.argv) < 1):
print "Usage: %s [timeserver*]" % (sys.argv[0])
sys.exit(1)
bus = dbus.SystemBus()
clock = dbus.Interface(bus.get_object('net.connman', '/'),
'net.connman.Clock')
print "Setting timeserver to %s" % (sys.argv[1:])
clock.SetProperty("Timeservers", dbus.Array(sys.argv[1:],
signature=dbus.Signature('s')))