Advertisement
SharkyEXE

Untitled

Nov 2nd, 2018
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. def NTPStart(self):
  2. i = 1
  3. if i == "1":
  4. if config.plugins.SystemTime.syncNTPcoldstart == "False":
  5. if config.plugins.SetClock.choiceSystemTime.value == "1":
  6. if not config.plugins.SetClock.useNTPminutes.value == "0":
  7. {ничего не делать}
  8. if config.plugins.SystemTime.syncNTPcoldstart == "True":
  9. if config.plugins.SetClock.choiceSystemTime.value == "1":
  10. if not config.plugins.SetClock.useNTPminutes.value == "0":
  11. {ничего не делать}
  12. i = 2
  13. if i > "1":
  14. if config.plugins.SetClock.choiceSystemTime.value == "1":
  15. if not config.plugins.SetClock.useNTPminutes.value == "0":
  16. cmd = '/usr/lib/enigma2/python/Plugins/Extensions/SetClock/ntpdate -s -u %s' % config.plugins.SetClock.ip.value
  17. self.Console.ePopen(cmd, self.update_schedule)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement