From 184959bc77a5e39b795fdd97dea5ad97edac4af3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 24 Feb 2022 11:58:22 +0100 Subject: global-functions: $DeviceInfo: firmware only if upgrade pending (cherry picked from commit a00e912bb5c556eaead42a4213c545a34c3959d9) --- global-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/global-functions b/global-functions index ef7fa15..ffa5789 100644 --- a/global-functions +++ b/global-functions @@ -221,7 +221,8 @@ [ $IfThenElse ([ :typeof ($Update->"latest-version") ] != "nothing" && \ $Update->"installed-version" != $Update->"latest-version") \ ("\n Available: " . $Update->"latest-version") ] . \ - [ $IfThenElse ($RouterBoard->"routerboard" = true) \ + [ $IfThenElse ($RouterBoard->"routerboard" = true && \ + $RouterBoard->"current-firmware" != $RouterBoard->"upgrade-firmware") \ ("\n Firmware: " . $RouterBoard->"current-firmware") ] . \ "\nRouterOS-Scripts:" . \ "\n Current: " . $GlobalConfigVersion . \ -- cgit v1.2.3-70-g09d2