Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
anzz1 authored May 31, 2023
1 parent 17c0e6b commit 1124aac
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions skeleton/miyoo354/app/MainUI
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1124aac

Please sign in to comment.