Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 7b476b1c6077a7c2021bf9c4c878dbf8 > scriptlet

am-utils-6.1.5-6mdv2010.0.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 -q "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
/usr/share/rpm-helper/del-service am-utils $1 amd 
if [ "$1" = "0" ]; then if [[ -f /usr/share/info/am-utils.lzma ]]; then /sbin/install-info /usr/share/info/am-utils.lzma --dir=/usr/share/info/dir --remove ; fi; fi

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service am-utils $1 amd 
if [[ -f /usr/share/info/am-utils.lzma ]]; then /sbin/install-info /usr/share/info/am-utils.lzma --dir=/usr/share/info/dir; fi