Last change
on this file since 187 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:
661 bytes
|
Rev | Line | |
---|
[79] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # Authors: Bas van der Vlies |
---|
| 4 | # |
---|
| 5 | # SVN Info: |
---|
| 6 | # $Id: postrm 87 2007-03-29 07:40:41Z bas $ |
---|
[86] | 7 | # |
---|
[87] | 8 | DAEMON=pxeconfigd |
---|
| 9 | CONFIG_FILE=/etc/pxeconfig.conf |
---|
| 10 | |
---|
| 11 | if [ "$1" = "purge" ] |
---|
[86] | 12 | then |
---|
[87] | 13 | /bin/rm $CONFIG_FILE |
---|
| 14 | |
---|
| 15 | PXE_TEST=`grep $DAEMON /etc/services` |
---|
| 16 | if [ ! -z "$PXE_TEST" ] |
---|
| 17 | then |
---|
| 18 | TMP_FILE=/tmp/services.$$ |
---|
| 19 | grep -v "$DAEMON" /etc/services > $TMP_FILE |
---|
| 20 | mv $TMP_FILE /etc/services |
---|
| 21 | else |
---|
| 22 | echo "WARNING: no $DAEMON in /etc/services to remove" |
---|
| 23 | fi |
---|
| 24 | |
---|
| 25 | if [ -d /etc/xinetd.d ] |
---|
| 26 | then |
---|
| 27 | /bin/rm /etc/xinetd.d/$DAEMON |
---|
| 28 | /etc/init.d/xinetd reload |
---|
| 29 | else |
---|
| 30 | /usr/sbin/update-inetd --group OTHER --remove "$DAEMON stream tcp nowait root.sys /usr/sbin/tcpd /usr/sbin/$DAEMON" |
---|
| 31 | /etc/init.d/inetd reload |
---|
| 32 | fi |
---|
| 33 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.