def NTPStart(self):
i = 1
if i == "1":
if config.plugins.SystemTime.syncNTPcoldstart == "False":
if config.plugins.SetClock.choiceSystemTime.value == "1":
if not config.plugins.SetClock.useNTPminutes.value == "0":
{ничего не делать}
if config.plugins.SystemTime.syncNTPcoldstart == "True":
if config.plugins.SetClock.choiceSystemTime.value == "1":
if not config.plugins.SetClock.useNTPminutes.value == "0":
{ничего не делать}
i = 2
if i > "1":
if config.plugins.SetClock.choiceSystemTime.value == "1":
if not config.plugins.SetClock.useNTPminutes.value == "0":
cmd = '/usr/lib/enigma2/python/Plugins/Extensions/SetClock/ntpdate -s -u %s' % config.plugins.SetClock.ip.value
self.Console.ePopen(cmd, self.update_schedule)
Comments