From 07064c0978b78356bf74408c216f524881df3362 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 21 Apr 2005 17:36:04 +0000 Subject: Update init scripts a bit. Don't mess with /etc/default for now. --- package/dhcp/init-server | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'package/dhcp/init-server') 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) -- cgit v1.2.3