aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtarget/linux/imx6/base-files/lib/upgrade/platform.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh
index 2d76b6b4af..c3be9d5424 100755
--- a/target/linux/imx6/base-files/lib/upgrade/platform.sh
+++ b/target/linux/imx6/base-files/lib/upgrade/platform.sh
@@ -72,3 +72,16 @@ platform_copy_config() {
;;
esac
}
+
+platform_pre_upgrade() {
+ local board=$(board_name)
+
+ case "$board" in
+ apalis*)
+ [ "$SAVE_CONFIG" -eq 0 ] && {
+ jffs2reset -y
+ umount /overlay
+ }
+ ;;
+ esac
+}