Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > a16bf3c6ee3ddc321b824fa38e918250 > scriptlet

am-utils-6.2.0-8.mga8.armv7hl.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

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service am-utils $1 amd

Triggers

am-utils < 2:6.1.5-16

/bin/sh
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del amd >/dev/null 2>&1 || :
/bin/systemctl try-restart amd >/dev/null 2>&1 || :