summaryrefslogtreecommitdiff
path: root/package/dhcp
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit@wsystem.com>2015-10-25 02:59:31 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-24 15:02:25 +0100
commit12590c7d21925093a701b323261afc50a7961438 (patch)
tree9351a6fc5669179960a51ab9eb0b290bd1037b5d /package/dhcp
parentb998c876c32e6ea7d15a10544db02ecb9e700183 (diff)
package/dhcp/S80dhcp-server: allow empty INTERFACES
The dhcpd daemon does not require network interface names to be specified on the command line. >From dhcpd(8): "The names of the network interfaces on which dhcpd should listen for broadcasts may be specified on the command line. This should be done on systems where dhcpd is unable to identify non-broadcast interfaces, but should not be required on other systems. If no interface names are specified on the command line dhcpd will identify all network interfaces which are up, eliminating non-broadcast interfaces if possible, and listen for DHCP broadcasts on each interface." dhcpd exits with "Not configured to listen on any interfaces!" only if no requested (those in INTERFACES, or all if empty) non-broadcast interfaces matching the subnet declarations in dhcpd.conf are up. Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/dhcp')
-rwxr-xr-xpackage/dhcp/S80dhcp-server1
1 files changed, 0 insertions, 1 deletions
diff --git a/package/dhcp/S80dhcp-server b/package/dhcp/S80dhcp-server
index 2538d42a2..9d59636a2 100755
--- a/package/dhcp/S80dhcp-server
+++ b/package/dhcp/S80dhcp-server
@@ -20,7 +20,6 @@ CFG_FILE="/etc/default/${NAME}"
# Sanity checks
test -f /usr/sbin/dhcpd || exit 0
test -f /etc/dhcp/dhcpd.conf || exit 0
-test -n "$INTERFACES" || exit 0
case "$1" in
start)