Index: scripts/start.sh =================================================================== diff -u -r0e122c98700951af539d9f47c5578e26d640fcc7 -rf45f4093470d79f74c79f5a162bff598215b5dda --- scripts/start.sh (.../start.sh) (revision 0e122c98700951af539d9f47c5578e26d640fcc7) +++ scripts/start.sh (.../start.sh) (revision f45f4093470d79f74c79f5a162bff598215b5dda) @@ -136,6 +136,19 @@ exitConfirm $ERR_KILLPROMPT } +function manufacturingModePrompt() { + echo_star_comment + echo_star_message "Do you want to run in the Manufacturing Mode?" + echo_star_comment + read -p "Continue? [y,n]" -n 1 -r CONTINUE + if [ "$CONTINUE" == "y" ]; then + sshRun "echo "$SETUP_ENABLE_MANUFACTURING_MODE" > $SETUP_CONF_FILE" + echo_star_message "Set the setup in manufacturing mode" + else + echo_star_message "Continueing the setup in normal mode" + fi +} + function getDeviceIP() { while true; do validIP "$DST_IP" @@ -217,7 +230,7 @@ } function wipe_device() { - sshRun "rm -frd $(ls -A -I '.ssh')" + sshRun "rm -frd $(ls -A -I '.ssh' -I $SETUP_CONF_FILE)" } function main() { @@ -231,6 +244,7 @@ sshKeyCopy killPrompt + manufacturingModePrompt wipe_device setupBootupScripts