From 5b786e10c87f0fd9bf2e297a32af2deabc2946d7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 22 Nov 2021 09:57:57 +0100 Subject: global-functions: $DeviceInfo: add current firmware (I would like to show a note if the upgrade is pending... But did not find a way to get that information. Is there?) --- global-functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/global-functions b/global-functions index 3ec3e3e..4ec903a 100644 --- a/global-functions +++ b/global-functions @@ -218,6 +218,8 @@ [ $IfThenElse ([ :typeof ($Update->"latest-version") ] != "nothing" && \ $Update->"installed-version" != $Update->"latest-version") \ ("\n Available: " . $Update->"latest-version") ] . \ + [ $IfThenElse ($RouterBoard->"routerboard" = true) \ + ("\n Firmware: " . $RouterBoard->"current-firmware") ] . \ "\nRouterOS-Scripts:" . \ "\n Current: " . $GlobalConfigVersion . \ [ $IfThenElse ($GlobalConfigVersion != $ExpectedConfigVersion) \ -- cgit v1.2.3-70-g09d2