ipq806x: Correct OnHub sysupgrade config logic
authorBrian Norris <computersforpeace@gmail.com>
Sun, 10 Sep 2023 21:10:50 +0000 (14:10 -0700)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 16 Sep 2023 10:02:23 +0000 (12:02 +0200)
There's a typo in here: board_name is a function, not a variable. This
issue was pointed out on the OpenWrt forum.

Closes: #13409
Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
(cherry picked from commit 7b78a19e6a16f5c05bfc6d7925b9981048c508d7)

target/linux/ipq806x/base-files/lib/upgrade/platform.sh

index 5ec4f513bd33db2a43bab264ae4855123bb2358d..e292e231c89280861667f3f4fe66cf04361a9600 100644 (file)
@@ -81,7 +81,7 @@ platform_do_upgrade() {
 }
 
 platform_copy_config() {
-       case "${board_name}" in
+       case "$(board_name)" in
        asus,onhub |\
        tplink,onhub)
                emmc_copy_config