#!/bin/sh

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


PXE_TEST=`grep pxeconfigd /etc/services`

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


