Add display invert to --install

This commit is contained in:
jayofelony
2024-03-04 19:59:48 +01:00
parent 87eae76a58
commit 1f9afd541d
2 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ if __name__ == '__main__':
help="Interactive installation of your personal configuration.") help="Interactive installation of your personal configuration.")
parser.add_argument('--check-update', dest="check_update", action="store_true", default=False, parser.add_argument('--check-update', dest="check_update", action="store_true", default=False,
help="Check for updates on Pwnagotchi. And tells current version.") help="Check for updates on Pwnagotchi. And tells current version.")
parser.add_argument('--donate', dest="donate", action="store_true", default=False, parser.add_argument('--wizard', dest="wizard", action="store_true", default=False,
help="How to donate to this project.") help="How to donate to this project.")
# pwnagotchi plugins --help # pwnagotchi plugins --help
@ -159,8 +159,8 @@ if __name__ == '__main__':
print(pwnagotchi.__version__) print(pwnagotchi.__version__)
sys.exit(0) sys.exit(0)
if args.install: if args.wizard:
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]\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")
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.")

View File

@ -2,7 +2,7 @@ _show_complete()
{ {
local cur opts node_names all_options opt_line local cur opts node_names all_options opt_line
all_options=" all_options="
pwnagotchi -h --help -C --config -U --user-config --manual --skip-session --clear --debug --version --print-config --check-update --donate {plugins,google} pwnagotchi -h --help -C --config -U --user-config --manual --skip-session --clear --debug --version --print-config --wizard --check-update --donate {plugins,google}
pwnagotchi plugins -h --help {list,install,enable,disable,uninstall,update,upgrade} pwnagotchi plugins -h --help {list,install,enable,disable,uninstall,update,upgrade}
pwnagotchi plugins list -i --installed -h --help pwnagotchi plugins list -i --installed -h --help
pwnagotchi plugins install -h --help pwnagotchi plugins install -h --help