Add a interactive configuration installer

This commit is contained in:
jayofelony
2024-03-04 15:32:08 +01:00
parent ea60808700
commit e5e0180f3c

View File

@ -164,7 +164,7 @@ if __name__ == '__main__':
if pwn_check.lower() in ('y', 'yes'):
pwn_restore = input("Do you want to restore the previous configuration? [y/n]")
if pwn_restore in ('y', 'yes'):
os.system("mv -f /etc/pwnagotchi/config.toml.bak /etc/pwnagotchi.config.toml")
os.system("mv -f /etc/pwnagotchi/config.toml.bak /etc/pwnagotchi/config.toml")
else:
os.system("mv -f /etc/pwnagotchi/config.toml /etc/pwnagotchi/config.toml.bak")
with open("/etc/pwnagotchi/config.toml", "a+") as f: