aboutsummaryrefslogtreecommitdiffstats
path: root/debian/install_files/50-ntp.conf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/install_files/50-ntp.conf')
-rw-r--r--debian/install_files/50-ntp.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/install_files/50-ntp.conf b/debian/install_files/50-ntp.conf
new file mode 100644
index 0000000..1544ad7
--- /dev/null
+++ b/debian/install_files/50-ntp.conf
@@ -0,0 +1,14 @@
+# Use the more adapted debian script defined by the ntp package directly if it
+# is available.
+
+if [ -f /etc/dhcp/dhclient-exit-hooks.d/ntp ]; then
+ . /etc/dhcp/dhclient-exit-hooks.d/ntp
+fi
+
+# timesyncd is supported too
+if [ -f /etc/dhcp/dhclient-exit-hooks.d/timesyncd ]; then
+ . /etc/dhcp/dhclient-exit-hooks.d/timesyncd
+fi
+
+# there is no script for openntpd readily available
+# there is no script for chrony readily available