ath79: fix broken MikroTik upgrade
authorKoen Vandeputte <[email protected]>
Tue, 14 Oct 2025 10:25:25 +0000 (12:25 +0200)
committerKoen Vandeputte <[email protected]>
Tue, 14 Oct 2025 10:25:56 +0000 (12:25 +0200)
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 <[email protected]>
target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh

index 1ce42f7b7979a336411309040850702d53d17422..629e7fd9b8b16fb5cab5ee4e021a8b01504026ad 100644 (file)
@@ -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|\