mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Add display invert to --install
This commit is contained in:
@ -162,12 +162,12 @@ if __name__ == '__main__':
|
|||||||
if args.wizard:
|
if args.wizard:
|
||||||
pwn_restore = input("Do you want to restore the previous configuration? [Y/N]\n")
|
pwn_restore = input("Do you want to restore the previous configuration? [Y/N]\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("cp -f /etc/pwnagotchi/config.toml.bak /etc/pwnagotchi/config.toml")
|
||||||
print("Your previous configuration is restored, and I will restart in 5 seconds.")
|
print("Your previous configuration is restored, and I will restart in 5 seconds.")
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
os.system("service pwnagotchi restart")
|
os.system("service pwnagotchi restart")
|
||||||
else:
|
else:
|
||||||
pwn_check = input("This will create a new configuration file and backup your current one, are you sure? [Y/N]\n")
|
pwn_check = input("This will create a new configuration file and overwrite your current backup, are you sure? [Y/N]\n")
|
||||||
if pwn_check.lower() in ('y', 'yes'):
|
if pwn_check.lower() in ('y', 'yes'):
|
||||||
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