From ea4e1dac71dfa015c0da10e68149478fa25878f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Tue, 2 Jul 2019 16:10:57 +0200 Subject: base-files: drop support for NAND upgrade in platform_pre_upgrade() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With bcm53xx switched to the new procedure there is no more need for keeping that backward compatibility code. Signed-off-by: Rafał Miłecki --- package/base-files/files/lib/upgrade/common.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'package/base-files/files/lib/upgrade/common.sh') diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 0f6fab97f8..a13a6aaf5a 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -228,9 +228,7 @@ default_do_upgrade() { do_upgrade_stage2() { v "Performing system upgrade..." - if [ -n "$do_upgrade" ]; then - eval "$do_upgrade" - elif type 'platform_do_upgrade' >/dev/null 2>/dev/null; then + if type 'platform_do_upgrade' >/dev/null 2>/dev/null; then platform_do_upgrade "$IMAGE" else default_do_upgrade "$IMAGE" -- cgit v1.2.3