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?)
This commit is contained in:
Christian Hesse 2021-11-22 09:57:57 +01:00
parent 15d8652c29
commit 5b786e10c8

View file

@ -218,6 +218,8 @@
[ $IfThenElse ([ :typeof ($Update->"latest-version") ] != "nothing" && \ [ $IfThenElse ([ :typeof ($Update->"latest-version") ] != "nothing" && \
$Update->"installed-version" != $Update->"latest-version") \ $Update->"installed-version" != $Update->"latest-version") \
("\n Available: " . $Update->"latest-version") ] . \ ("\n Available: " . $Update->"latest-version") ] . \
[ $IfThenElse ($RouterBoard->"routerboard" = true) \
("\n Firmware: " . $RouterBoard->"current-firmware") ] . \
"\nRouterOS-Scripts:" . \ "\nRouterOS-Scripts:" . \
"\n Current: " . $GlobalConfigVersion . \ "\n Current: " . $GlobalConfigVersion . \
[ $IfThenElse ($GlobalConfigVersion != $ExpectedConfigVersion) \ [ $IfThenElse ($GlobalConfigVersion != $ExpectedConfigVersion) \