aboutsummaryrefslogtreecommitdiffstats
path: root/check-lte-firmware-upgrade.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-01-07 23:13:54 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-07 23:13:54 +0100
commit8c458592f51fcf065b903226f7a407f9a92ebb83 (patch)
treed7b465db5ef61f30695a9e4abb1db552e7035196 /check-lte-firmware-upgrade.rsc
parent0760ea91211b59ba20ddb08a2372d851e11a409f (diff)
check-lte-firmware-upgrade: unbreak terminal detectiono
This broke with commit 50d7e1fa41b8f8a6a1379de5521798346fd1ae9f... 🫣
Diffstat (limited to 'check-lte-firmware-upgrade.rsc')
-rw-r--r--check-lte-firmware-upgrade.rsc9
1 files changed, 5 insertions, 4 deletions
diff --git a/check-lte-firmware-upgrade.rsc b/check-lte-firmware-upgrade.rsc
index 149c008..d6bda72 100644
--- a/check-lte-firmware-upgrade.rsc
+++ b/check-lte-firmware-upgrade.rsc
@@ -21,7 +21,8 @@ $ScriptLock $0;
}
:local CheckInterface do={
- :local Interface $1;
+ :local ScriptName $1;
+ :local Interface $2;
:global Identity;
:global SentLteFirmwareUpgradeNotification;
@@ -51,13 +52,13 @@ $ScriptLock $0;
}
:if (($Firmware->"installed") = ($Firmware->"latest")) do={
- :if ([ $ScriptFromTerminal $0 ] = true) do={
+ :if ([ $ScriptFromTerminal $ScriptName ] = true) do={
$LogPrintExit2 info $0 ("No firmware upgrade available for LTE interface " . $IntName . ".") false;
}
:return true;
}
- :if ([ $ScriptFromTerminal $0 ] = true && \
+ :if ([ $ScriptFromTerminal $ScriptName ] = true && \
[ :len [ /system/script/find where name="unattended-lte-firmware-upgrade" ] ] > 0) do={
:put ("Do you want to start unattended lte firmware upgrade for interface " . $IntName . "? [y/N]");
:if (([ /terminal/inkey timeout=60 ] % 32) = 25) do={
@@ -89,5 +90,5 @@ $ScriptLock $0;
}
:foreach Interface in=[ /interface/lte/find ] do={
- $CheckInterface $Interface;
+ $CheckInterface $0 $Interface;
}