Commit d93d955c authored by Mike Hibler's avatar Mike Hibler

Restrict dhcpd to only the control net interface (identified by BOSSNODE_IP)

parent 32e6f7a5
......@@ -4,10 +4,15 @@
#
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
/usr/local/sbin/dhcpd -f $cnetif
fi
;;
stop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment