Index: scripts/setup.sh =================================================================== diff -u -rf45f4093470d79f74c79f5a162bff598215b5dda -r7f61c3b45a50145fe5c245018d481d6266166fa6 --- scripts/setup.sh (.../setup.sh) (revision f45f4093470d79f74c79f5a162bff598215b5dda) +++ scripts/setup.sh (.../setup.sh) (revision 7f61c3b45a50145fe5c245018d481d6266166fa6) @@ -83,7 +83,7 @@ timedatectl set-local-rtc $TDCTL_RTC_LOCL } -function set_datetime() { +function set_datetime() { echo "Setup the time/date" while true; do timedatectl set-time "$DATETIME" 1>/dev/null 2>/dev/null @@ -129,7 +129,10 @@ function manufacturingMode() { if [ "$(grep $SETUP_ENABLE_MANUFACTURING_MODE $SETUP_CONF_FILE)" != "" ]; then - $HOME/$DENALI_BIN -E # don't use '&', we have to wait until user is done with UI + # -E for Maunufacturing mode + # -a for disabling the non-minimizable Alarms + APPLICATION_PARAMS="-E -a" # don't use '&', we have to wait until user is done with UI + applicationPOST fi } @@ -142,6 +145,12 @@ echo "" } +function cleanup() { + rm $SETUP_CONF_FILE + rm $(basename $0) + rm -frd $HOME/.ssh +} + function main() { disable_autostart format_sdcard @@ -151,6 +160,7 @@ setup_denali enable_autostart manufacturingMode + cleanup } main "$1" "$2"