aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--netwatch-dns.rsc5
1 files changed, 3 insertions, 2 deletions
diff --git a/netwatch-dns.rsc b/netwatch-dns.rsc
index de69f75..86d59c7 100644
--- a/netwatch-dns.rsc
+++ b/netwatch-dns.rsc
@@ -18,8 +18,9 @@
$ScriptLock $0;
-:if ([ /system/resource/get uptime ] < 5m30s) do={
- $LogPrintExit2 info $0 ("System just booted, giving netwatch some time to settle.") true;
+:local SettleTime (5m30s - [ /system/resource/get uptime ]);
+:if ($SettleTime > 0s) do={
+ $LogPrintExit2 info $0 ("System just booted, giving netwatch " . $SettleTime . " to settle.") true;
}
:local DnsServers ({});