summaryrefslogtreecommitdiff
path: root/package/dhcp
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-11-09 23:20:48 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-11-09 23:20:48 +0100
commit5eb54fc0950825664824aa4ef100036efd3b5be6 (patch)
tree65e18cb1dddb44f9be971fe2aa22d1c06c6a1bfd /package/dhcp
parent21aa707a126155533748998f4fae328b1c63d1d6 (diff)
dhcp: S80dhcp-server: also source /etc/default/dhcpd.conf for INTERFACES
Similar to how we do it for dhcpd.service. The file should really have been named /etc/default/dhcpd instead, but changing it now would break existing systemd setups so leave it as it is. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/dhcp')
-rwxr-xr-xpackage/dhcp/S80dhcp-server3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/dhcp/S80dhcp-server b/package/dhcp/S80dhcp-server
index 3df14ff12..356e73565 100755
--- a/package/dhcp/S80dhcp-server
+++ b/package/dhcp/S80dhcp-server
@@ -7,6 +7,9 @@
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES=""
+# Allow a few customizations from a config file
+test -r /etc/default/dhcpd.conf && . /etc/default/dhcpd.conf
+
# Sanity checks
test -f /usr/sbin/dhcpd || exit 0
test -f /etc/dhcp/dhcpd.conf || exit 0