diff --git a/scripts/update_pwnagotchi.sh b/scripts/update_pwnagotchi.sh index 60107214..34e4eedf 100644 --- a/scripts/update_pwnagotchi.sh +++ b/scripts/update_pwnagotchi.sh @@ -1,82 +1,111 @@ #!/bin/bash # Default variables -git_folder="/tmp/pwnagotchi" -git_url="https://github.com/evilsocket/pwnagotchi/" -version="master" -backupconfig=0 -restoreconfig=0 +GIT_FOLDER="/tmp/pwnagotchi" +GIT_URL="https://github.com/evilsocket/pwnagotchi/" +VERSION="master" +SUPPORTED_RESTART_MODES=( 'auto' 'manual' ) +MODE="auto" +BACKUPCONFIG=0 +RESTORECONFIG=0 # Functions function usage() { - cat <