Last change
on this file since 63 was
44,
checked in by bastiaans, 19 years ago
|
DEBIAN/postinst:
Support toegevoegd voor xinetd
DEBIAN/postrm:
Support toegevoegd voor xinetd
Changelog:
Versie en change toegevoegd
|
-
Property svn:executable set to
*
|
File size:
482 bytes
|
Rev | Line | |
---|
[40] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | DAEMON=beo_pxeconfigd |
---|
| 4 | |
---|
| 5 | if [ "$1" = "purge" ] |
---|
| 6 | then |
---|
| 7 | update-inetd --remove "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON" |
---|
[44] | 8 | rm /etc/xinetd.d/pxe |
---|
[40] | 9 | /etc/init.d/inetd reload |
---|
[44] | 10 | /etc/init.d/xinetd reload |
---|
[40] | 11 | |
---|
| 12 | PXE_TEST=`grep $DAEMON /etc/services` |
---|
| 13 | |
---|
[44] | 14 | if [ ! -z "$PXE_TEST" ]; then |
---|
[40] | 15 | grep -v "$DAEMON" /etc/services > /tmp/services.tmp |
---|
| 16 | mv /tmp/services.tmp /etc/services |
---|
| 17 | else |
---|
| 18 | echo "WARNING: no $DAEMON in /etc/services to remove" |
---|
| 19 | fi |
---|
| 20 | |
---|
| 21 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.