Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 483390a2caa6ecbab3fba4ac4627da67 > scriptlet

am-utils-6.0.3-4mdk.i586.rpm

PREIN

/bin/sh
# Check if we have an old fashioned amd.conf and rename if to amd.net
if [ "$1" = "0" ] ; then
    if grep "auto_dir" /etc/amd.conf 2>/dev/null > /dev/null ; then
	# this is okay
	exit 0
    else
	# this needs to be renamed. Still, if /etc/amd.net exists, then
	# don't bother renamig it. RPM will handle it better than us here.
	if [ -e /etc/amd.net ] ; then
	    exit 0
	else
	    mv -f /etc/amd.conf /etc/amd.net
	fi
    fi
fi
exit 0

PREUN

/bin/sh
if [ $1 = 0 ]; then
   /sbin/install-info --delete /usr/info/am-utils.info.bz2 /usr/info/dir
   /sbin/chkconfig --del amd
fi

POSTIN

/bin/sh
/sbin/ldconfig
/sbin/chkconfig --add amd
/sbin/install-info /usr/info/am-utils.info.bz2 /usr/info/dir