From 50d7e1fa41b8f8a6a1379de5521798346fd1ae9f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 4 Aug 2022 00:16:35 +0200 Subject: check-lte-firmware-upgrade: use $0 for $ScriptFromTerminal --- check-lte-firmware-upgrade | 4 ++-- 1 file 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={ -- cgit v1.2.3-70-g09d2