[openwrt/openwrt] mediatek: remove no longer needed sysupgrade hack
LEDE Commits
lede-commits at lists.infradead.org
Sun Mar 7 18:29:39 GMT 2021
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7e7218d1331d0b557b0e9a513aef5de584b6b1d2
commit 7e7218d1331d0b557b0e9a513aef5de584b6b1d2
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sun Mar 7 18:15:50 2021 +0000
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 at makrotopia.org>
---
.../mt7622/base-files/lib/preinit/79_move_config | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config b/target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config
deleted file mode 100644
index 8a30b84497..0000000000
--- a/target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config
+++ /dev/null
@@ -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
More information about the lede-commits
mailing list