#!/bin/sh DAEMON=beo_pxeconfigd PORT=6611 PXE_TEST=`grep $DAEMON /etc/services` if [ ! -z "$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 fi if [ -d /etc/xinetd.d ] && [ ! -r /etc/xinetd.d/pxe ] then cat </etc/xinetd.d/pxe service beo_pxeconfigd { disable = no socket_type = stream protocol = tcp user = root group = sys wait = no server = /usr/sbin/beo_pxeconfigd } EOF echo -e "service $DAEMON\n{\n\tdisable\t\t= no\n\tsocket_type\t= stream\n\tprotocol\t= tcp\n\tuser\t\t= root\n\tgroup\t\t= sys\n\twait\t\t= no\n\tserver\t\t= /usr/sbin/beo_pxeconfigd\n}" > /etc/xinetd.d/pxe /etc/init.d/xinetd reload fi if [ -r /etc/inetd.conf ] then update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON" /etc/init.d/inetd reload fi