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:05:10 +0100
commit184959bc77a5e39b795fdd97dea5ad97edac4af3 (patch)
treeb3619c24a227f5885a63376f07c0c3d8ffab2213 /global-functions
parentbf6c7d27dfa08756800df15432e0ce5e518184cb (diff)
global-functions: $DeviceInfo: firmware only if upgrade pending
(cherry picked from commit a00e912bb5c556eaead42a4213c545a34c3959d9)
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 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 . \