Reboot after auto-update

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-26 00:07:15 +01:00
parent 4905eb6b26
commit d6bc5c0e66

View File

@ -230,7 +230,7 @@ class AutoUpdate(plugins.Plugin):
if num_installed > 0:
display.update(force=True, new_data={'status': 'Rebooting ...'})
time.sleep(3)
os.system("service pwnagotchi restart")
pwnagotchi.reboot()
except Exception as e:
logging.error("[update] %s" % e)