From d6bc5c0e663ad47cd1c51eb7ffdbce6058382178 Mon Sep 17 00:00:00 2001 From: jayofelony Date: Tue, 26 Mar 2024 00:07:15 +0100 Subject: [PATCH] Reboot after auto-update Signed-off-by: jayofelony --- pwnagotchi/plugins/default/auto-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)