[source] ramips: sysupgrade: move nand_do_upgrade call to platform_do_upgrade

LEDE Commits lede-commits at lists.infradead.org
Mon May 29 14:57:08 PDT 2017


neoraider pushed a commit to source.git, branch master:
https://git.lede-project.org/9ab81e63cd398ae740bfadb9b318e6e0ec3712cc

commit 9ab81e63cd398ae740bfadb9b318e6e0ec3712cc
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Sat Apr 22 21:27:04 2017 +0200

    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 at universe-factory.net>
---
 target/linux/ramips/base-files/lib/upgrade/platform.sh | 9 +--------
 1 file changed, 1 insertion(+), 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 6aad4c9..f25d1e2 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"
 		;;



More information about the lede-commits mailing list