1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

netwatch-dns: be move verbose on time to settle

This commit is contained in:
Christian Hesse
2024-01-18 21:07:52 +01:00
parent 8a0a4c355b
commit 0ad1a79d67

View File

@ -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 ({});