diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 9cd918f8..fdd58fc2 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -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)