From b1299c2fcf61d7baa2073ba7ff1d33b5ea28a51e Mon Sep 17 00:00:00 2001 From: Koen Vandeputte Date: Tue, 14 Oct 2025 12:25:25 +0200 Subject: [PATCH] ath79: fix broken MikroTik upgrade Fix a regression introduced by a recent commit. It looks like a copy/paste error. Add the missing line which defines the 'board' val as it does not exist otherwise in the case check. This fixes sysupgrade on ath79 MikroTik non-NOR boards. Fixes: 318f07c231 ("ath79: mikrotik: check RouterBOOT version matching sysupgrade image") Signed-off-by: Koen Vandeputte --- target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh b/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh index 1ce42f7b79..629e7fd9b8 100644 --- a/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh +++ b/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh @@ -26,6 +26,8 @@ platform_check_image_mikrotik_nor() { } platform_check_image() { + local board=$(board_name) + case "$board" in mikrotik,routerboard-2011uias-2hnd|\ mikrotik,routerboard-493g|\ -- 2.30.2