diff --git a/skeleton/miyoo354/app/MainUI b/skeleton/miyoo354/app/MainUI index 3403e36..462f59b 100755 --- a/skeleton/miyoo354/app/MainUI +++ b/skeleton/miyoo354/app/MainUI @@ -17,21 +17,6 @@ cd "$DIR" export LD_LIBRARY_PATH=/lib:/config/lib:/customer/lib -# update bootcmd if necessary - not needed for MMP -# contains() { [ -z "${2##*$1*}" ]; } -# MIYOO_VERSION=`/etc/fw_printenv miyoo_version` -# MIYOO_VERSION=${MIYOO_VERSION#miyoo_version=} -# SUPPORTED_VERSION="202205010000" # date after latest known version -# if [ $MIYOO_VERSION -lt $SUPPORTED_VERSION ]; then -# OLD_CMD=`/etc/fw_printenv bootcmd` -# NEW_CMD="gpio output 85 1; bootlogo 0 0 0 0 0; mw 1f001cc0 11; gpio out 8 0; sf probe 0;sf read 0x22000000 \${sf_kernel_start} \${sf_kernel_size}; gpio out 8 1; gpio output 4 1; bootm 0x22000000" -# if contains "sleepms" "$OLD_CMD"; then -# ./say "Updating bootcmd" -# /etc/fw_setenv bootcmd $NEW_CMD -# sleep 1 -# fi -# fi - SYSTEM_PATH=/mnt/SDCARD/.system OLD_SYSTEM_PATH=/mnt/SDCARD/.system_old @@ -46,9 +31,6 @@ if [ -d "$SYSTEM_PATH" ]; then ./say "Updating DotUI" NOUN=Update JUST_UPDATED=1 - rm -rf /tmp/updater.old - mv /mnt/SDCARD/.tmp_update/updater /tmp/updater.old - rm -rf "/mnt/SDCARD/.tmp_update" rm -rf "$OLD_SYSTEM_PATH" mv "$SYSTEM_PATH" "$OLD_SYSTEM_PATH" else @@ -63,10 +45,8 @@ if [ $? -ne 0 ]; then if [ ! -z "$JUST_UPDATED" ]; then rm -rf "$SYSTEM_PATH" mv "$OLD_SYSTEM_PATH" "$SYSTEM_PATH" - rm -rf "/mnt/SDCARD/.tmp_update" - mkdir -p "/mnt/SDCARD/.tmp_update" - mv /tmp/updater.old /mnt/SDCARD/.tmp_update/updater fi + rm -rf "/mnt/SDCARD/.tmp_update" sync update_fail fi