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/stage2 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'package/base-files/files/lib/upgrade/stage2') diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2 index bdc12c7426..05d9214377 100755 --- a/package/base-files/files/lib/upgrade/stage2 +++ b/package/base-files/files/lib/upgrade/stage2 @@ -136,10 +136,7 @@ sleep 1 if [ -n "$IMAGE" ] && type 'platform_pre_upgrade' >/dev/null 2>/dev/null; then - IS_PRE_UPGRADE=1 platform_pre_upgrade "$IMAGE" - - # Needs to be unset again because of busybox weirdness ... - IS_PRE_UPGRADE= + platform_pre_upgrade "$IMAGE" fi if [ -n "$(rootfs_type)" ]; then -- cgit v1.2.3