diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-07-02 16:10:57 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-04 13:25:46 +0200 |
commit | a074ed29333dbb71d40da2f0b4ad9a8e6e781bfd (patch) | |
tree | 3adb21a3fea5d923abf368163d46bd7d9f052da6 /package/base-files/files/lib/upgrade/stage2 | |
parent | e98eab1b6b775afaec2c62071ca703ea75c6358a (diff) | |
download | upstream-a074ed29333dbb71d40da2f0b4ad9a8e6e781bfd.tar.gz upstream-a074ed29333dbb71d40da2f0b4ad9a8e6e781bfd.tar.bz2 upstream-a074ed29333dbb71d40da2f0b4ad9a8e6e781bfd.zip |
base-files: drop support for NAND upgrade in platform_pre_upgrade()
With bcm53xx switched to the new procedure there is no more need for
keeping that backward compatibility code.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit ea4e1dac71dfa015c0da10e68149478fa25878f9)
Diffstat (limited to 'package/base-files/files/lib/upgrade/stage2')
-rwxr-xr-x | package/base-files/files/lib/upgrade/stage2 | 5 |
1 files changed, 1 insertions, 4 deletions
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 |