Changeset 87 for trunk/debian/postinst


Ignore:
Timestamp:
03/29/07 09:40:41 (16 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/postinst

    r86 r87  
    66#       $Id$
    77#
     8DAEMON=pxeconfigd
     9PORT=6611
     10
     11SHARE_DIR=/usr/share/doc/pxeconfig
     12
     13PXE_TEST=`grep $DAEMON /etc/services`
     14
     15if [ ! -z "$PXE_TEST" ]; then
     16        echo "WARNING: $DAEMON already in /etc/services"
     17else
     18    echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services
     19fi
     20
    821if [ -d /etc/xinetd.d ]
    922then
    10   cp /usr/share/doc/pxeconfig/examples/pxeconfigd.xinetd /etc/xinetd.d/pxeconfigd
     23        if [ ! -r /etc/xinetd.d/$DAEMON ]
     24        then
     25                cp $SHARE_DIR/examples/pxeconfigd.xinetd /etc/xinetd.d/$DAEMON
     26                /etc/init.d/xinetd reload
     27        fi
    1128else
    12   /usr/sbin/update-inetd --group OTHER --remove "pxeconfig stream  tcp  nowait  root.sys /usr/sbin/tcpd  /usr/sbin/pxeconfigd"
     29        /usr/sbin/update-inetd --group OTHER --add "$DAEMON stream  tcp  nowait  root.sys /usr/sbin/tcpd  /usr/sbin/$DAEMON"
     30        /etc/init.d/inetd reload
    1331fi
Note: See TracChangeset for help on using the changeset viewer.