aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware-upgrade-reboot5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware-upgrade-reboot b/firmware-upgrade-reboot
index b3cb621..a3a25db 100644
--- a/firmware-upgrade-reboot
+++ b/firmware-upgrade-reboot
@@ -28,5 +28,10 @@
:delay 1s;
}
+:local Uptime [ / system resource get uptime ];
+:if ($Uptime < 1m) do={
+ :delay $Uptime;
+}
+
$LogPrintExit2 info $0 ("Firmware upgrade successful, rebooting.") false;
/ system reboot;