aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-04-16 09:29:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-04-16 09:29:43 +0200
commit9aac873163051aef8c1f8b5b959e5796a5341e1a (patch)
tree26bd47bb658143fc444970d6cc1fb5edbf772748
parent5273efda21a7149af1b63b411e14af37e447afcb (diff)
daily-psk-schedule: try to rotate ntp after five minutes uptime
-rw-r--r--daily-psk-schedule3
1 files changed, 3 insertions, 0 deletions
diff --git a/daily-psk-schedule b/daily-psk-schedule
index bad21a5..a1a49fa 100644
--- a/daily-psk-schedule
+++ b/daily-psk-schedule
@@ -15,6 +15,9 @@
}
:if ([ / system ntp client get status ] != "synchronized") do={
+ :if ([ / system resource get uptime ] > 5m) do={
+ / system script run [ find where name="rotate-ntp" ];
+ }
:log warning "Time is not yet synchronized from ntp.";
:error "Warning: See log for details.";
}