base-files: fix Linksys upgrade, restore config step
authorMichael Trinidad <trinidude4@hotmail.com>
Fri, 7 Apr 2023 13:10:29 +0000 (09:10 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 11 Apr 2023 10:22:35 +0000 (12:22 +0200)
It appears that the refactor of the upgrade process for NAND devices                                                                                                                            resulted in the nand_do_upgrade_success step not being called for
devices using the linksys.sh script. As a result, configuration was
not preserved over sysupgrade steps.

This corrects a typo in the call of nand_do_upgrade_failed for ipq40xx
and ipq806x devices using the linksys.sh script.

Fixes: 8634c1080d50 ("ipq40xx: Fix Linksys upgrade, restore config step")
Fixes: 2715aff5df83 ("ipq806x: Fix Linksys upgrade, restore config step")
Signed-off-by: Michael Trinidad <trinidude4@hotmail.com>
target/linux/ipq40xx/base-files/lib/upgrade/linksys.sh
target/linux/ipq806x/base-files/lib/upgrade/linksys.sh

index 696f653eb9e12d7da766a43fbcdadce2a15f3163..18366fc622a4784530f0b5a650ca5fa3c06814c4 100644 (file)
@@ -103,7 +103,7 @@ platform_do_upgrade_linksys() {
                if nand_upgrade_tar "$1" ; then
                        nand_do_upgrade_success
                else
-                       nand_do_upgrade_failure
+                       nand_do_upgrade_failed
                fi
 
        }
index b0ad1b43be6e712fed4a1402c82340ae91e5a36f..21d22c6f1bc40ad35dea7f6f5700e09600060a65 100644 (file)
@@ -97,7 +97,7 @@ platform_do_upgrade_linksys() {
                if nand_upgrade_tar "$1" ; then
                        nand_do_upgrade_success
                else
-                       nand_do_upgrade_failure
+                       nand_do_upgrade_failed
                fi
 
        }