diff options
author | Gerald Carter <jerry@samba.org> | 2001-06-01 12:24:11 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-06-01 12:24:11 +0000 |
commit | 0e40dbf86bd60f7eb057a27f56cded4f689c6747 (patch) | |
tree | ba563fed292816c03ae1253e545c6f961cbe59ca /packaging/Caldera/UnixWare/pkg/postremove | |
parent | 26bc8adcaa94a5a76710d1003d3828982fff33ac (diff) | |
download | samba-0e40dbf86bd60f7eb057a27f56cded4f689c6747.tar.gz samba-0e40dbf86bd60f7eb057a27f56cded4f689c6747.tar.bz2 samba-0e40dbf86bd60f7eb057a27f56cded4f689c6747.zip |
sync with SAMBA_2_2
(This used to be commit 720ec55c175bd9df5832085066d1e68b2684a8a2)
Diffstat (limited to 'packaging/Caldera/UnixWare/pkg/postremove')
-rwxr-xr-x | packaging/Caldera/UnixWare/pkg/postremove | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packaging/Caldera/UnixWare/pkg/postremove b/packaging/Caldera/UnixWare/pkg/postremove new file mode 100755 index 0000000000..dc81d6fa85 --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/postremove @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Remove /var/spool/samba and delete inetd entries for swat +# + +SPOOL=/var/spool/samba +SVCS=/etc/services +INET=/etc/inetd.conf + +[ -d $SPOOL ] && { + rm -rf $SPOOL +} + +grep swat $SVCS > /dev/null && { + B=`basename $SVCS` + T=$B$$ + grep -v swat $SVCS > /tmp/$T + cp /tmp/$T $SVCS + rm -f /tmp/$T +} + +grep swat $INET > /dev/null || { + B=`basename $INET` + T=$B$$ + grep -v swat $INET > /tmp/$T + cp /tmp/$T $INET + rm -f /tmp/$T +} + +kill -1 `ps -e | grep inetd | awk ' { print $1 } '` |