aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-02-24 11:58:22 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-02-24 12:04:19 +0100
commita00e912bb5c556eaead42a4213c545a34c3959d9 (patch)
tree68a836b60d5c73345a61a6bf57a53697b3e2050e /global-functions
parent8c0bd18bbb103a648c6462e008a2861a77a54929 (diff)
global-functions: $DeviceInfo: firmware only if upgrade pending
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 2b37bea..11c3bd7 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 . \