aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 12:45:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:37:57 +0100
commitc8e4cb05267f50ebc06d5cebc30186f0a5618252 (patch)
treefacc64dd3f5fc13b82ab54a794da80b727d5a479
parent5c775fdb3f28aaa2f354db3dca8ae3abd29c3d9d (diff)
firmware-upgrade-reboot: switch to $LogPrint
-rw-r--r--firmware-upgrade-reboot.rsc14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware-upgrade-reboot.rsc b/firmware-upgrade-reboot.rsc
index 6499d27..038f74e 100644
--- a/firmware-upgrade-reboot.rsc
+++ b/firmware-upgrade-reboot.rsc
@@ -14,7 +14,7 @@
:do {
:local ScriptName [ :jobname ];
- :global LogPrintExit2;
+ :global LogPrint;
:global ScriptLock;
:global VersionToNum;
@@ -24,18 +24,18 @@
:local RouterBoard [ /system/routerboard/get ];
:if ($RouterBoard->"current-firmware" = $RouterBoard->"upgrade-firmware") do={
- $LogPrintExit2 info $ScriptName ("Current and upgrade firmware match with version " . \
- $RouterBoard->"current-firmware" . ".") false;
+ $LogPrint info $ScriptName ("Current and upgrade firmware match with version " . \
+ $RouterBoard->"current-firmware" . ".");
:error true;
}
:if ([ $VersionToNum ($RouterBoard->"current-firmware") ] > [ $VersionToNum ($RouterBoard->"upgrade-firmware") ]) do={
- $LogPrintExit2 info $ScriptName ("Different firmware version is available, but it is a downgrade. Ignoring.") false;
+ $LogPrint info $ScriptName ("Different firmware version is available, but it is a downgrade. Ignoring.");
:error true;
}
:if ([ /system/routerboard/settings/get auto-upgrade ] = false) do={
- $LogPrintExit2 info $ScriptName ("Firmware version " . $RouterBoard->"upgrade-firmware" . \
- " is available, upgrading.") false;
+ $LogPrint info $ScriptName ("Firmware version " . $RouterBoard->"upgrade-firmware" . \
+ " is available, upgrading.");
/system/routerboard/upgrade;
}
@@ -49,6 +49,6 @@
:delay $Uptime;
}
- $LogPrintExit2 info $ScriptName ("Firmware upgrade successful, rebooting.") false;
+ $LogPrint info $ScriptName ("Firmware upgrade successful, rebooting.");
/system/reboot;
} on-error={ }