source: trunk/DEBIAN/postrm @ 75

Last change on this file since 75 was 68, checked in by bas, 17 years ago

postinst:

  • Fixed an error in the postinst script for debian

Added keywords:

  • control, postinst and postrm
  • Property svn:executable set to *
  • Property svn:keywords set to Id URL
File size: 512 bytes
Line 
1#!/bin/sh
2#
3# SVN Info:
4#       $Id: postrm 68 2006-11-14 11:13:26Z bas $
5#       $URL: trunk/DEBIAN/postrm $
6#
7DAEMON=beo_pxeconfigd
8
9if [ "$1" = "purge" ]
10then
11  update-inetd --remove "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"
12  rm /etc/xinetd.d/pxe
13  /etc/init.d/inetd reload
14  /etc/init.d/xinetd reload
15
16  PXE_TEST=`grep $DAEMON /etc/services`
17
18  if [ ! -z "$PXE_TEST" ]; then
19    grep -v "$DAEMON" /etc/services > /tmp/services.tmp
20    mv /tmp/services.tmp /etc/services
21  else
22    echo "WARNING: no $DAEMON in /etc/services to remove"
23  fi
24
25fi
Note: See TracBrowser for help on using the repository browser.