aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-11-22 09:57:57 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-11-22 09:57:57 +0100
commit5b786e10c87f0fd9bf2e297a32af2deabc2946d7 (patch)
tree717e2220f76eff47f5e68c25f9e3b991160c7bc7
parent15d8652c296597e42582e7248362fed70656e0df (diff)
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?)
-rw-r--r--global-functions2
1 files changed, 2 insertions, 0 deletions
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) \