From bc92613700ab294309fa6c81d5acc01f431c3b7b Mon Sep 17 00:00:00 2001 From: jayofelony Date: Mon, 4 Mar 2024 15:36:17 +0100 Subject: [PATCH] Add a interactive configuration installer --- bin/pwnagotchi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pwnagotchi b/bin/pwnagotchi index 2195959a..5c860629 100755 --- a/bin/pwnagotchi +++ b/bin/pwnagotchi @@ -163,6 +163,9 @@ if __name__ == '__main__': 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") + print("Your previous configuration is restored, and I will restart in 5 seconds.") + time.sleep(5) + os.system("service pwnagotchi restart") else: pwn_check = input("This will create a new configuration file and backup your current one, are you sure? [y/n]") if pwn_check.lower() in ('y', 'yes'):