aboutsummaryrefslogtreecommitdiffstats
path: root/check-lte-firmware-upgrade
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-08-04 00:16:35 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-08-04 00:16:35 +0200
commit50d7e1fa41b8f8a6a1379de5521798346fd1ae9f (patch)
treee98f8ea32dd633dcb667ff2416852edadb30f2a8 /check-lte-firmware-upgrade
parent50178e2a3c6067c4148e3f814b60e51d1c8ced69 (diff)
check-lte-firmware-upgrade: use $0 for $ScriptFromTerminal
Diffstat (limited to 'check-lte-firmware-upgrade')
-rw-r--r--check-lte-firmware-upgrade4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-lte-firmware-upgrade b/check-lte-firmware-upgrade
index c039dad..62943ee 100644
--- a/check-lte-firmware-upgrade
+++ b/check-lte-firmware-upgrade
@@ -41,13 +41,13 @@
}
:if (($Firmware->"installed") = ($Firmware->"latest")) do={
- :if ([ $ScriptFromTerminal "check-lte-firmware-upgrade" ] = true) do={
+ :if ([ $ScriptFromTerminal $0 ] = true) do={
$LogPrintExit2 info $0 ("No firmware upgrade available for LTE interface " . $IntName . ".") false;
}
:return true;
}
- :if ([ $ScriptFromTerminal "check-lte-firmware-upgrade" ] = true && \
+ :if ([ $ScriptFromTerminal $0 ] = 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={