source: trunk/DEBIAN/postrm @ 70

Last change on this file since 70 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
RevLine 
[40]1#!/bin/sh
[68]2#
3# SVN Info:
4#       $Id: postrm 68 2006-11-14 11:13:26Z bas $
5#       $URL: trunk/DEBIAN/postrm $
6#
[40]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"
[44]12  rm /etc/xinetd.d/pxe
[40]13  /etc/init.d/inetd reload
[44]14  /etc/init.d/xinetd reload
[40]15
16  PXE_TEST=`grep $DAEMON /etc/services`
17
[44]18  if [ ! -z "$PXE_TEST" ]; then
[40]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.