Changeset 87 for trunk/debian/postrm


Ignore:
Timestamp:
03/29/07 09:40:41 (17 years ago)
Author:
bas
Message:

DEBIAN:

  • Removed old setup for creating debian package

debian:

  • postinst/postrm script are now correct for installation/removing the package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/postrm

    r86 r87  
    66#       $Id$
    77#
    8 if [ -d /etc/xinetd.d ]
     8DAEMON=pxeconfigd
     9CONFIG_FILE=/etc/pxeconfig.conf
     10
     11if [ "$1" = "purge" ]
    912then
    10   cp /usr/share/doc/pxeconfig/examples/pxeconfigd.xinetd /etc/xinetd.d/pxeconfigd
    11 else
    12   /usr/sbin/update-inetd --group OTHER --remove "pxeconfig stream  tcp  nowait  root.sys /usr/sbin/tcpd  /usr/sbin/pxeconfigd"
    13 fi   
     13        /bin/rm $CONFIG_FILE
     14
     15        PXE_TEST=`grep $DAEMON /etc/services`
     16        if [ ! -z "$PXE_TEST" ]
     17        then
     18                TMP_FILE=/tmp/services.$$
     19                grep -v "$DAEMON" /etc/services > $TMP_FILE
     20                mv $TMP_FILE /etc/services
     21        else
     22                echo "WARNING: no $DAEMON in /etc/services to remove"
     23        fi
     24
     25        if [ -d /etc/xinetd.d ]
     26        then
     27                /bin/rm /etc/xinetd.d/$DAEMON
     28                /etc/init.d/xinetd reload
     29        else
     30                /usr/sbin/update-inetd --group OTHER --remove "$DAEMON stream  tcp  nowait  root.sys /usr/sbin/tcpd  /usr/sbin/$DAEMON"
     31                /etc/init.d/inetd reload
     32        fi   
     33fi
Note: See TracChangeset for help on using the changeset viewer.