diff options
author | Christian Hesse <mail@eworm.de> | 2022-02-24 11:58:22 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-02-24 12:04:19 +0100 |
commit | a00e912bb5c556eaead42a4213c545a34c3959d9 (patch) | |
tree | 68a836b60d5c73345a61a6bf57a53697b3e2050e /global-functions | |
parent | 8c0bd18bbb103a648c6462e008a2861a77a54929 (diff) |
global-functions: $DeviceInfo: firmware only if upgrade pending
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 3 |
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 . \ |