fix: fixed reboot procedure (fixes #313)

This commit is contained in:
Simone Margaritelli
2019-10-17 13:42:05 +02:00
parent 13b1fb6d14
commit 79688305fd
2 changed files with 7 additions and 3 deletions

View File

@ -65,3 +65,9 @@ def shutdown():
time.sleep(5)
os.system("sync")
os.system("halt")
def reboot():
logging.warning("rebooting ...")
os.system("sync")
os.system("shutdown -r now")