ipq806x: Correct OnHub sysupgrade config logic
authorBrian Norris <computersforpeace@gmail.com>
Sun, 10 Sep 2023 21:10:50 +0000 (14:10 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 12 Sep 2023 21:36:30 +0000 (23:36 +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>
target/linux/ipq806x/base-files/lib/upgrade/platform.sh

index 108b0b763077a3aad3324764431568bbfac6e868..8eda75b71886b8532cfd90787a6636454d579c0a 100644 (file)
@@ -82,7 +82,7 @@ platform_do_upgrade() {
 }
 
 platform_copy_config() {
-       case "${board_name}" in
+       case "$(board_name)" in
        asus,onhub |\
        tplink,onhub)
                emmc_copy_config