mediatek: remove no longer needed sysupgrade hack

Keeping configuration is now handled in fstools like for other types
of flash as well.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-03-07 18:15:50 +00:00
parent c6652a7c94
commit 7e7218d133
1 changed files with 0 additions and 18 deletions

View File

@ -1,18 +0,0 @@
. /lib/upgrade/common.sh
RECOVERY_PART=/dev/mmcblk0p6
move_config() {
if [ -b $RECOVERY_PART ]; then
insmod nls_cp437
insmod nls_iso8859-1
insmod fat
insmod vfat
mkdir -p /recovery
mount -o rw,noatime $RECOVERY_PART /recovery
[ -f "/recovery/$BACKUP_FILE" ] && mv -f "/recovery/$BACKUP_FILE" /
umount /recovery
fi
}
boot_hook_add preinit_mount_root move_config