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-relay | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'package/dhcp/init-relay') diff --git a/package/dhcp/init-relay b/package/dhcp/init-relay index 019a7e84c..c870ea7f5 100755 --- a/package/dhcp/init-relay +++ b/package/dhcp/init-relay @@ -3,16 +3,25 @@ # $Id: dhcp3-relay,v 1.1 2004/04/16 15:41:08 ml Exp $ # + +# What servers should the DHCP relay forward requests to? +# e.g: SERVERS="192.168.0.1" +SERVERS="" + +# On what interfaces should the DHCP relay (dhrelay) serve DHCP requests? +INTERFACES="" + +# Additional options that are passed to the DHCP relay daemon? +OPTIONS="" + + + + # It is not safe to start if we don't have a default configuration... -if [ ! -f /etc/default/dhcp-relay ]; then - echo "/etc/default/dhcp-relay does not exist! - Aborting..." - echo "create this file to fix the problem." - exit 1 -fi +echo "/etc/init.d/dhcp-relay not yet configured! - Aborting..." +exit 1; + -# Read init script configuration (interfaces the daemon should listen on -# and the DHCP server we should forward requests to.) -. /etc/default/dhcp-relay # Build command line for interfaces (will be passed to dhrelay below.) IFCMD="" -- cgit v1.2.3