From cd3fde59d767e9948cbaad6fea08deb6b9b7a181 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 2 Jan 2022 21:44:22 +0100 Subject: netwatch-notify: give netwatch some time to settle --- netwatch-notify | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netwatch-notify b/netwatch-notify index da6c5ce..ae89cfb 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -46,6 +46,10 @@ $ScriptLock $0; +:if ([ / system resource get uptime ] < 5m) do={ + $LogPrintExit2 info $0 ("System just booted, giving netwatch some time to settle.") true; +} + :if ([ :typeof $NetwatchNotify ] = "nothing") do={ :set NetwatchNotify [ :toarray "" ]; } -- cgit v1.2.3-70-g09d2