aboutsummaryrefslogtreecommitdiffstats
path: root/check-lte-firmware-update
diff options
context:
space:
mode:
Diffstat (limited to 'check-lte-firmware-update')
-rw-r--r--check-lte-firmware-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/check-lte-firmware-update b/check-lte-firmware-update
index 0f62a0a..2878a27 100644
--- a/check-lte-firmware-update
+++ b/check-lte-firmware-update
@@ -13,6 +13,8 @@
:local intname [ / interface lte get $interface name ];
:do {
:local firmware [ / interface lte firmware-upgrade $interface once as-value ];
+ # strip the extra line break (TODO: remove when fixed upstream)
+ :set ($firmware->"latest") [ :pick ($firmware->"latest") 0 [ :find ($firmware->"latest") "\n" ] ];
:if ($"sent-lte-firmware-update-notification" = ($firmware->"latest")) do={
:log debug ("Already sent the LTE firmware update notification for version " . \