aboutsummaryrefslogtreecommitdiffstats
path: root/firmware-upgrade-reboot.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-04 15:46:46 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 15:27:15 +0100
commitab0b2e27c3d190b627325827d0fba5808cba9137 (patch)
tree4114e16985d693fc8bf793aa413bf09523f6a936 /firmware-upgrade-reboot.rsc
parent184a769eebc245be7b60f0c6e8ee4157b740c704 (diff)
firmware-upgrade-reboot: do not exit with error
Diffstat (limited to 'firmware-upgrade-reboot.rsc')
-rw-r--r--firmware-upgrade-reboot.rsc6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware-upgrade-reboot.rsc b/firmware-upgrade-reboot.rsc
index efe22ae..95adab0 100644
--- a/firmware-upgrade-reboot.rsc
+++ b/firmware-upgrade-reboot.rsc
@@ -23,10 +23,12 @@
: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" . ".") true;
+ $RouterBoard->"current-firmware" . ".") false;
+ :return 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.") true;
+ $LogPrintExit2 info $ScriptName ("Different firmware version is available, but it is a downgrade. Ignoring.") false;
+ :return true;
}
:if ([ /system/routerboard/settings/get auto-upgrade ] = false) do={