示例#1
0
def startup(reason=0, **kwargs):
	if reason == 0:
		global ntpsyncpoller
		if ntpsyncpoller is None:
			ntpsyncpoller = NTPSyncPoller()
			ntpsyncpoller.start()
			removeNetworkStart()
	elif reason == 1:
		nowTime = time.time()
		if nowTime > 1514808000:
			setRTCtime(nowTime)
示例#2
0
def startup(session=None, **kwargs):
	global ntpsyncpoller
	if ntpsyncpoller is None:
		ntpsyncpoller = NTPSyncPoller()
		ntpsyncpoller.start()
		removeNetworkStart()
示例#3
0
def startup(session=None, **kwargs):
    global ntpsyncpoller
    ntpsyncpoller = NTPSyncPoller()
    ntpsyncpoller.start()