aboutsummaryrefslogtreecommitdiffstats
path: root/debian/install_files/50-ntp.conf
diff options
context:
space:
mode:
authorvg <vg@devys.org>2018-09-14 11:39:30 +0200
committervg <vg@devys.org>2018-09-14 11:39:30 +0200
commit9e43678b05249510fbfb3b6b7183d0aa60c58681 (patch)
tree36638917c08c5a5cf8fdb8c786a33c78c43dc3de /debian/install_files/50-ntp.conf
parent6ea9967850b0c82beec1b56d231b41f5424d8a32 (diff)
downloaddebian-dhcpcd-9e43678b05249510fbfb3b6b7183d0aa60c58681.tar.gz
debian-dhcpcd-9e43678b05249510fbfb3b6b7183d0aa60c58681.tar.bz2
debian-dhcpcd-9e43678b05249510fbfb3b6b7183d0aa60c58681.zip
add overrides for conffilesHEADmaster
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