diff options
author | Christian Hesse <mail@eworm.de> | 2024-01-18 21:07:52 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-18 21:07:52 +0100 |
commit | 0ad1a79d677ad26ad586238efcff59cf58d703ec (patch) | |
tree | 06b4b0fa451671d100474f04623569238f9b18a9 | |
parent | 8a0a4c355b4804913fa117917e8ac3686db91fc2 (diff) |
netwatch-dns: be move verbose on time to settle
-rw-r--r-- | netwatch-dns.rsc | 5 |
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 ({}); |