mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Add a interactive configuration installer
This commit is contained in:
@ -164,7 +164,7 @@ if __name__ == '__main__':
|
|||||||
if pwn_check.lower() in ('y', 'yes'):
|
if pwn_check.lower() in ('y', 'yes'):
|
||||||
pwn_restore = input("Do you want to restore the previous configuration? [y/n]")
|
pwn_restore = input("Do you want to restore the previous configuration? [y/n]")
|
||||||
if pwn_restore in ('y', 'yes'):
|
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:
|
else:
|
||||||
os.system("mv -f /etc/pwnagotchi/config.toml /etc/pwnagotchi/config.toml.bak")
|
os.system("mv -f /etc/pwnagotchi/config.toml /etc/pwnagotchi/config.toml.bak")
|
||||||
with open("/etc/pwnagotchi/config.toml", "a+") as f:
|
with open("/etc/pwnagotchi/config.toml", "a+") as f:
|
||||||
|
Reference in New Issue
Block a user