Last change
on this file since 61 was
45,
checked in by bas, 19 years ago
|
update version info for:
- pxeconfig, pxeconfigd and control
postinst:
- Fixed an bug two entries for xinetd.d
Authors:
INSTALL:
|
-
Property svn:executable set to
*
|
File size:
750 bytes
|
Rev | Line | |
---|
[40] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | DAEMON=beo_pxeconfigd |
---|
| 4 | PORT=6611 |
---|
| 5 | |
---|
| 6 | PXE_TEST=`grep $DAEMON /etc/services` |
---|
| 7 | |
---|
[44] | 8 | if [ ! -z "$PXE_TEST" ]; then |
---|
[40] | 9 | echo "WARNING: $DAEMON already in /etc/services" |
---|
| 10 | else |
---|
| 11 | echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services |
---|
| 12 | fi |
---|
| 13 | |
---|
[45] | 14 | if [ -d /etc/xinetd.d ] && [ ! -r /etc/xinetd.d/$DAEMON ] |
---|
[44] | 15 | then |
---|
[45] | 16 | cat <<EOF >/etc/xinetd.d/$DAEMON |
---|
| 17 | service $DAEMON |
---|
[44] | 18 | { |
---|
| 19 | disable = no |
---|
| 20 | socket_type = stream |
---|
| 21 | protocol = tcp |
---|
| 22 | user = root |
---|
| 23 | group = sys |
---|
| 24 | wait = no |
---|
[45] | 25 | server = /usr/sbin/$DAEMON |
---|
[44] | 26 | } |
---|
| 27 | EOF |
---|
[40] | 28 | |
---|
[44] | 29 | /etc/init.d/xinetd reload |
---|
| 30 | fi |
---|
| 31 | |
---|
| 32 | if [ -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 |
---|
| 36 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.