diff options
author | vg <vg@devys.org> | 2018-09-14 11:39:30 +0200 |
---|---|---|
committer | vg <vg@devys.org> | 2018-09-14 11:39:30 +0200 |
commit | 9e43678b05249510fbfb3b6b7183d0aa60c58681 (patch) | |
tree | 36638917c08c5a5cf8fdb8c786a33c78c43dc3de /debian/install_files | |
parent | 6ea9967850b0c82beec1b56d231b41f5424d8a32 (diff) | |
download | debian-dhcpcd-9e43678b05249510fbfb3b6b7183d0aa60c58681.tar.gz debian-dhcpcd-9e43678b05249510fbfb3b6b7183d0aa60c58681.tar.bz2 debian-dhcpcd-9e43678b05249510fbfb3b6b7183d0aa60c58681.zip |
Diffstat (limited to 'debian/install_files')
-rw-r--r-- | debian/install_files/50-ntp.conf | 14 | ||||
-rw-r--r-- | debian/install_files/dhcpcd.conf | 42 |
2 files changed, 56 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 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 |