#!/bin/sh
#
# Wrapper for DHCPD which has a habit of dying. 
#
case "$1" in
	start)
		# limit to control network
		cnetif=
		if [ -x @prefix@/sbin/findif ]; then
		    cnetif=`@prefix@/sbin/findif -i @BOSSNODE_IP@`
		fi
		if [ -x @prefix@/sbin/daemon_wrapper ]; then
			echo -n " dhcpd wrapper"
			@prefix@/sbin/daemon_wrapper \
			  /usr/local/sbin/dhcpd -f $cnetif
		fi
		;;
	stop)
		if [ -r /var/run/dhcpd_wrapper.pid ]; then
			kill `cat /var/run/dhcpd_wrapper.pid`
		fi
		;;
	*)
		echo ""
		echo "Usage: `basename $0` { start | stop }"
		echo ""
		exit 64
		;;
esac

#!/bin/sh
#
# Wrapper for DHCPD which has a habit of dying. 
#
elabinelab="@ELABINELAB@"
case "$1" in
	start)
		# limit to control network
		cnetif=
		if [ $elabinelab != "1" -a -x @prefix@/sbin/findif ]; then
		    cnetif=`@prefix@/sbin/findif -i @BOSSNODE_IP@`
		fi
		if [ -x @prefix@/sbin/daemon_wrapper ]; then
			echo -n " dhcpd wrapper"
			@prefix@/sbin/daemon_wrapper \
			  /usr/local/sbin/dhcpd -f $cnetif
		fi
		;;
	stop)
		if [ -r /var/run/dhcpd_wrapper.pid ]; then
			kill `cat /var/run/dhcpd_wrapper.pid`
		fi
		;;
	*)
		echo ""
		echo "Usage: `basename $0` { start | stop }"
		echo ""
		exit 64
		;;
esac

Adjust previous fix to compensate for elabinelab (which must continue to listen on the "real" control net).
Adjust previous fix to compensate for elabinelab (which must continue to
listen on the "real" control net).
