#!/bin/sh DAEMON=beo_pxeconfigd if [ "$1" = "purge" ] then update-inetd --remove "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON" /etc/init.d/inetd reload PXE_TEST=`grep $DAEMON /etc/services` if [ "$PXE_TEST" ]; then grep -v "$DAEMON" /etc/services > /tmp/services.tmp mv /tmp/services.tmp /etc/services else echo "WARNING: no $DAEMON in /etc/services to remove" fi fi