summaryrefslogtreecommitdiffstats
path: root/package/dhcp/init-server
diff options
context:
space:
mode:
Diffstat (limited to 'package/dhcp/init-server')
-rwxr-xr-xpackage/dhcp/init-server22
1 files changed, 13 insertions, 9 deletions
diff --git a/package/dhcp/init-server b/package/dhcp/init-server
index 34c20852b..7c7f893a1 100755
--- a/package/dhcp/init-server
+++ b/package/dhcp/init-server
@@ -3,17 +3,21 @@
# $Id: dhcp3-server.init.d,v 1.4 2003/07/13 19:12:41 mdz Exp $
#
-test -f /usr/sbin/dhcpd || exit 0
+
+
+# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
+# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
+INTERFACES=""
+
# It is not safe to start if we don't have a default configuration...
-if [ ! -f /etc/default/dhcp-server ]; then
- echo "/etc/default/dhcp-server does not exist! - Aborting..."
- exit 0
-fi
-
-# Read init script configuration (so far only interfaces the daemon
-# should listen on.)
-. /etc/default/dhcp-server
+echo "/etc/init.d/dhcp-server not yet configured! - Aborting..."
+exit 1;
+
+
+
+test -f /usr/sbin/dhcpd || exit 0
+
case "$1" in
start)