source: trunk/debian/postinst @ 171

Last change on this file since 171 was 87, checked in by bas, 17 years ago

DEBIAN:

  • Removed old setup for creating debian package

debian:

  • postinst/postrm script are now correct for installation/removing the package.
  • Property svn:keywords set to Id URL
File size: 655 bytes
Line 
1#!/bin/sh
2#
3# Authors: Bas van der Vlies
4#
5# SVN Info:
6#       $Id: postinst 87 2007-03-29 07:40:41Z bas $
7#
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
21if [ -d /etc/xinetd.d ]
22then
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
28else
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
31fi
Note: See TracBrowser for help on using the repository browser.