aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/upgrade/nand.sh
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-07-02 16:10:57 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-07-08 07:38:51 +0200
commitea4e1dac71dfa015c0da10e68149478fa25878f9 (patch)
treee3802b208c4feef39891f293c78f080a64d15d22 /package/base-files/files/lib/upgrade/nand.sh
parentccf8a8e8633ccfd94fda233b06055ac42e4c9fd5 (diff)
downloadupstream-ea4e1dac71dfa015c0da10e68149478fa25878f9.tar.gz
upstream-ea4e1dac71dfa015c0da10e68149478fa25878f9.tar.bz2
upstream-ea4e1dac71dfa015c0da10e68149478fa25878f9.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>
Diffstat (limited to 'package/base-files/files/lib/upgrade/nand.sh')
-rw-r--r--package/base-files/files/lib/upgrade/nand.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh
index 99916a4e96..9f258a82c5 100644
--- a/package/base-files/files/lib/upgrade/nand.sh
+++ b/package/base-files/files/lib/upgrade/nand.sh
@@ -280,15 +280,6 @@ nand_upgrade_tar() {
# Recognize type of passed file and start the upgrade process
nand_do_upgrade() {
- if [ -n "$IS_PRE_UPGRADE" ]; then
- # Previously, nand_do_upgrade was called from the platform_pre_upgrade
- # hook; this piece of code handles scripts that haven't been
- # updated. All scripts should gradually move to call nand_do_upgrade
- # from platform_do_upgrade instead.
- export do_upgrade="nand_do_upgrade '$1'"
- return
- fi
-
local file_type=$(identify $1)
if type 'platform_nand_pre_upgrade' >/dev/null 2>/dev/null; then