From f0f9f8b964bf65888b2b01ad22bdd4761eec37b7 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Wed, 10 Jan 2024 20:11:42 +0100 Subject: [PATCH] /boot is now mounted in /boot/firmware on Bookworm --- pwnagotchi/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index d3a64c79..a3dd964b 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -164,8 +164,8 @@ def load_config(args): ref_defaults_file = os.path.join(os.path.dirname(pwnagotchi.__file__), 'defaults.toml') ref_defaults_data = None - # check for a config.yml file on /boot/ - for boot_conf in ['/boot/config.yml', '/boot/config.toml']: + # check for a config.yml file on /boot/firmware + for boot_conf in ['/boot/firmware/config.yml', '/boot/firmware/config.toml']: if os.path.exists(boot_conf): # logging not configured here yet print("installing %s to %s ...", boot_conf, args.user_config) @@ -174,10 +174,10 @@ def load_config(args): break # check for an entire pwnagotchi folder on /boot/ - if os.path.isdir('/boot/pwnagotchi'): - print("installing /boot/pwnagotchi to /etc/pwnagotchi ...") + if os.path.isdir('/boot/firmware/pwnagotchi'): + print("installing /boot/firmware/pwnagotchi to /etc/pwnagotchi ...") shutil.rmtree('/etc/pwnagotchi', ignore_errors=True) - shutil.move('/boot/pwnagotchi', '/etc/') + shutil.move('/boot/firmware/pwnagotchi', '/etc/') # if not config is found, copy the defaults if not os.path.exists(args.config):