aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh17
-rw-r--r--target/linux/ramips/base-files/lib/upgrade/ubnt.sh2
2 files changed, 6 insertions, 13 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index ae7a72c649..a65492a309 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -9,17 +9,6 @@ platform_check_image() {
return 0
}
-platform_nand_pre_upgrade() {
- local board=$(board_name)
-
- case "$board" in
- ubiquiti,edgerouterx|\
- ubiquiti,edgerouterx-sfp)
- platform_upgrade_ubnt_erx "$1"
- ;;
- esac
-}
-
platform_do_upgrade() {
local board=$(board_name)
@@ -35,8 +24,6 @@ platform_do_upgrade() {
hiwifi,hc5962|\
netgear,r6220|\
netgear,r6350|\
- ubiquiti,edgerouterx|\
- ubiquiti,edgerouterx-sfp|\
xiaomi,mir3g|\
xiaomi,mir3p)
nand_do_upgrade "$1"
@@ -45,6 +32,10 @@ platform_do_upgrade() {
MTD_ARGS="-t romfile"
default_do_upgrade "$1"
;;
+ ubiquiti,edgerouterx|\
+ ubiquiti,edgerouterx-sfp)
+ platform_upgrade_ubnt_erx "$1"
+ ;;
*)
default_do_upgrade "$1"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/ubnt.sh b/target/linux/ramips/base-files/lib/upgrade/ubnt.sh
index 316a70444f..748ec8e628 100644
--- a/target/linux/ramips/base-files/lib/upgrade/ubnt.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/ubnt.sh
@@ -73,4 +73,6 @@ platform_upgrade_ubnt_erx() {
fi
ubnt_update_target_kernel ${factory_mtd} ${kernel_part} || exit 1
+
+ nand_do_upgrade "$1"
}