From 3addc64d04f17ba9ae6a6ca8fb8175f044b31eea Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 6 Jan 2024 21:36:21 +0100 Subject: [PATCH] Update --- pwnagotchi/plugins/default/auto-update.py | 2 +- pwnagotchi/plugins/default/fix_services.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 8a33ecc0..e6de3e63 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -221,7 +221,7 @@ class AutoUpdate(plugins.Plugin): if num_installed > 0: display.update(force=True, new_data={'status': 'Rebooting ...'}) time.sleep(3) - pwnagotchi.reboot() + os.system("service pwnagotchi restart") except Exception as e: logging.error("[update] %s" % e) diff --git a/pwnagotchi/plugins/default/fix_services.py b/pwnagotchi/plugins/default/fix_services.py index 83d044b4..208f6036 100644 --- a/pwnagotchi/plugins/default/fix_services.py +++ b/pwnagotchi/plugins/default/fix_services.py @@ -11,7 +11,7 @@ from pwnagotchi import plugins import pwnagotchi.ui.faces as faces from pwnagotchi.bettercap import Client -from pwnagotchi.ui.components import LabeledValue +from pwnagotchi.ui.components import Text from pwnagotchi.ui.view import BLACK import pwnagotchi.ui.fonts as fonts @@ -399,8 +399,7 @@ class FixServices(plugins.Plugin): pos = (ui.width() / 2 + 35, ui.height() - 11) logging.info("Got here") - ui.add_element('brcmfmac_status', LabeledValue(color=BLACK, label='', value='--', position=pos, - label_font=fonts.Small, text_font=fonts.Small)) + ui.add_element('brcmfmac_status', Text(color=BLACK, value='--', position=pos, font=fonts.Small)) # called when the ui is updated def on_ui_update(self, ui):