Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > contrib > by-pkgid > 024e72482808409385ae1cf690c6d292 > scriptlet

coda-debug-client-5.3.20-4mdk.i586.rpm

PREIN

/bin/sh
grep "^coda" /proc/mounts > /dev/null 2>&1
if [ $? = 0 ]; then
	echo "*** Coda is mounted: cannot install ***"
	exit 1
else
	exit 0
fi

PREUN

/bin/sh
/usr/share/rpm-helper/del-service coda-debug $1 venus.init 
rm -rf /dev/cfs0
grep "^coda" /proc/mounts > /dev/null 2>&1
if [ $? = 0 ]; then
	echo "*** Coda is mounted: cannot uninstall ***"
	exit 1
else
	exit 0
fi

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service coda-debug $1 venus.init 
mknod /dev/cfs0 c 67 0
if [ -e /usr/coda/venus.cache/pid ]; then 
    rm -f /usr/coda/venus.cache/pid
fi
if [ ! -e /etc/coda/venus.conf ]; then 
	/usr/sbin/venus-setup testserver.coda.cs.cmu.edu 100000
fi