From: Thomas Petazzoni Date: Thu, 24 Dec 2015 13:48:28 +0000 (+0100) Subject: dhcp: read /etc/default/dhcpd, not /etc/default/dhcpd.conf X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f81baaf47e3f47b131ec2b1c6c5f7d062a48d84;p=buildroot.git dhcp: read /etc/default/dhcpd, not /etc/default/dhcpd.conf All daemons that read a file from /etc/default/ have it named just after the name of daemon, without any extension. This commit fixes the dhcp package to do the same. Signed-off-by: Thomas Petazzoni --- diff --git a/package/dhcp/S80dhcp-server b/package/dhcp/S80dhcp-server index 356e73565a..06b7ab1d9f 100755 --- a/package/dhcp/S80dhcp-server +++ b/package/dhcp/S80dhcp-server @@ -8,7 +8,7 @@ INTERFACES="" # Allow a few customizations from a config file -test -r /etc/default/dhcpd.conf && . /etc/default/dhcpd.conf +test -r /etc/default/dhcpd && . /etc/default/dhcpd # Sanity checks test -f /usr/sbin/dhcpd || exit 0 diff --git a/package/dhcp/dhcpd.service b/package/dhcp/dhcpd.service index d58fbd5d05..a05deb878f 100644 --- a/package/dhcp/dhcpd.service +++ b/package/dhcp/dhcpd.service @@ -7,7 +7,7 @@ Type=forking PIDFile=/run/dhcpd.pid ExecStart=/usr/sbin/dhcpd -q -pf /run/dhcpd.pid $INTERFACES KillSignal=SIGINT -EnvironmentFile=-/etc/default/dhcpd.conf +EnvironmentFile=-/etc/default/dhcpd [Install] WantedBy=multi-user.target