base-files: drop support for NAND upgrade in platform_pre_upgrade()
[openwrt/staging/blogic.git] / package / base-files / files / lib / upgrade / nand.sh
index 99916a4e96fc1c900bd12b46fb0ae168aa4899d0..9f258a82c55504d40e438eb2fe08171eb2abfdda 100644 (file)
@@ -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