From 9e43678b05249510fbfb3b6b7183d0aa60c58681 Mon Sep 17 00:00:00 2001 From: vg Date: Fri, 14 Sep 2018 11:39:30 +0200 Subject: add overrides for conffiles --- debian/install_files/50-ntp.conf | 14 ++++++++++++++ debian/install_files/dhcpcd.conf | 42 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 debian/install_files/50-ntp.conf create mode 100644 debian/install_files/dhcpcd.conf (limited to 'debian/install_files') 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 diff --git a/debian/install_files/dhcpcd.conf b/debian/install_files/dhcpcd.conf new file mode 100644 index 0000000..f17ee64 --- /dev/null +++ b/debian/install_files/dhcpcd.conf @@ -0,0 +1,42 @@ +# A sample configuration for dhcpcd. +# See dhcpcd.conf(5) for details. + +# Allow users of this group to interact with dhcpcd via the control socket. +#controlgroup wheel + +# Inform the DHCP server of our hostname for DDNS. +hostname + +# Use the hardware address of the interface for the Client ID. +#clientid +# or +# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361. +# Some non-RFC compliant DHCP servers do not reply with this set. +# In this case, comment out duid and enable clientid above. +duid + +# Persist interface configuration when dhcpcd exits. +persistent + +# Rapid commit support. +# Safe to enable by default because it requires the equivalent option set +# on the server to actually work. +option rapid_commit + +# A list of options to request from the DHCP server. +#option domain_name_servers, domain_name, domain_search, host_name +option domain_name_servers, domain_name, domain_search +option classless_static_routes +# Respect the network MTU. This is applied to DHCP routes. +option interface_mtu + +# Most distributions have NTP support. +option ntp_servers + +# A ServerID is required by RFC2131. +require dhcp_server_identifier + +# Generate SLAAC address using the Hardware Address of the interface +#slaac hwaddr +# OR generate Stable Private IPv6 Addresses based from the DUID +slaac private -- cgit v1.2.3