Merge pull request #2 from rai68/master

Update utils.py
This commit is contained in:
Jeroen Oudshoorn
2024-01-11 14:17:04 +01:00
committed by GitHub

View File

@ -165,8 +165,7 @@ def load_config(args):
ref_defaults_data = None
# check for a config.yml file on /boot/firmware
for boot_conf in ['/boot/config.yml', '/boot/firmware/config.yml',
'/boot/config.toml', '/boot/firmware/config.toml']:
for boot_conf in ['/boot/config.yml', '/boot/firmware/config.yml', '/boot/config.toml', '/boot/firmware/config.toml']:
if os.path.exists(boot_conf):
if os.path.exists(args.user_config):
# if /etc/pwnagotchi/config.toml already exists we just merge the new config