#!/bin/sh

DAEMON=beo_pxeconfigd
PORT=6611

update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"


PXE_TEST=`grep $DAEMON /etc/services`

if [ "$PXE_TEST" ]; then
  echo "WARNING: $DAEMON already in /etc/services"
else
  echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services
  /etc/init.d/inetd reload
fi


