source: trunk/pxeconfig/DEBIAN/postinst @ 59

Last change on this file since 59 was 45, checked in by bas, 20 years ago

update version info for:

  • pxeconfig, pxeconfigd and control

postinst:

  • Fixed an bug two entries for xinetd.d

Authors:

  • Added Ramon Bastiaans

INSTALL:

  • update info for xinetd
  • Property svn:executable set to *
File size: 750 bytes
Line 
1#!/bin/sh
2
3DAEMON=beo_pxeconfigd
4PORT=6611
5
6PXE_TEST=`grep $DAEMON /etc/services`
7
8if [ ! -z "$PXE_TEST" ]; then
9  echo "WARNING: $DAEMON already in /etc/services"
10else
11  echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services
12fi
13
14if [ -d /etc/xinetd.d ] && [ ! -r /etc/xinetd.d/$DAEMON ]
15  then
16    cat <<EOF >/etc/xinetd.d/$DAEMON
17service $DAEMON
18{
19        disable         = no
20        socket_type     = stream
21        protocol        = tcp
22        user            = root
23        group           = sys
24        wait            = no
25        server          = /usr/sbin/$DAEMON
26}
27EOF
28
29    /etc/init.d/xinetd reload
30fi
31
32if [ -r /etc/inetd.conf ]
33  then
34    update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"
35    /etc/init.d/inetd reload
36fi
Note: See TracBrowser for help on using the repository browser.