aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-04-22 21:27:04 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-05-29 23:50:33 +0200
commit9ab81e63cd398ae740bfadb9b318e6e0ec3712cc (patch)
treea086a77952b90e1373012f7d7f69622f390230f7 /target/linux/ramips/base-files
parenta5428244d969fda2b32e24b7cda589c2c65cbf7c (diff)
downloadupstream-9ab81e63cd398ae740bfadb9b318e6e0ec3712cc.tar.gz
upstream-9ab81e63cd398ae740bfadb9b318e6e0ec3712cc.tar.bz2
upstream-9ab81e63cd398ae740bfadb9b318e6e0ec3712cc.zip
ramips: sysupgrade: move nand_do_upgrade call to platform_do_upgrade
All targets with NAND support should gradually move their nand_do_upgrade calls from platform_pre_upgrade to platform_do_upgrade. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 6aad4c9601..f25d1e2a62 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -280,7 +280,7 @@ platform_nand_pre_upgrade() {
esac
}
-platform_pre_upgrade() {
+platform_do_upgrade() {
local board=$(ramips_board_name)
case "$board" in
@@ -289,13 +289,6 @@ platform_pre_upgrade() {
ubnt-erx)
nand_do_upgrade "$ARGV"
;;
- esac
-}
-
-platform_do_upgrade() {
- local board=$(ramips_board_name)
-
- case "$board" in
*)
default_do_upgrade "$ARGV"
;;