source: trunk/pxeconfig/DEBIAN/postinst @ 40

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

DEBIAN

  • Added DEBIAN control directory
  • Property svn:executable set to *
File size: 368 bytes
Line 
1#!/bin/sh
2
3DAEMON=beo_pxeconfigd
4PORT=6611
5
6update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"
7
8
9PXE_TEST=`grep $DAEMON /etc/services`
10
11if [ "$PXE_TEST" ]; then
12  echo "WARNING: $DAEMON already in /etc/services"
13else
14  echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services
15  /etc/init.d/inetd reload
16fi
17
18
Note: See TracBrowser for help on using the repository browser.