3 # $Id: dhcp3-relay,v 1.1 2004/04/16 15:41:08 ml Exp $
7 # What servers should the DHCP relay forward requests to?
8 # e.g: SERVERS="192.168.0.1"
11 # On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?
14 # Additional options that are passed to the DHCP relay daemon?
20 # It is not safe to start if we don't have a default configuration...
21 echo "/etc/init.d/dhcp-relay not yet configured! - Aborting..."
26 # Build command line for interfaces (will be passed to dhrelay below.)
28 if test "$INTERFACES" != ""; then
29 for I
in $INTERFACES; do
30 IFCMD
=${IFCMD}"-i "${I}" "
34 DHCRELAYPID
=/var
/run
/dhcrelay.pid
38 start-stop-daemon
-S -x /usr
/sbin
/dhcrelay
-- -q $OPTIONS $IFCMD $SERVERS
41 start-stop-daemon
-K -x /usr
/sbin
/dhcrelay
43 restart | force-reload
)
49 echo "Usage: /etc/init.d/dhcp-relay {start|stop|restart|force-reload}"