aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files/lib/upgrade')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index c094e41935..c2617b1a74 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -295,6 +295,7 @@ platform_check_image() {
nand_do_platform_check "$board" "$1"
return $?;
;;
+ mikrotik,rbm33g|\
re350-v1)
[ "$magic" != "01000000" ] && {
echo "Invalid image type."
@@ -316,6 +317,16 @@ platform_check_image() {
return 1
}
+platform_pre_upgrade() {
+ local board=$(board_name)
+
+ case "$board" in
+ mikrotik,rbm33g)
+ [ -z "$(rootfs_type)" ] && mtd erase firmware
+ ;;
+ esac
+}
+
platform_nand_pre_upgrade() {
local board=$(board_name)