PREIN
/bin/sh
# Check if we have an old fashioned amd.conf and rename if to amd.net
if test "$1" -ne 0; then
if test -r /etc/amd.conf; then
if grep -v -q "auto_dir" /etc/amd.conf; then
if test ! -e /etc/amd.net; then
mv -f /etc/amd.conf /etc/amd.net
fi
fi
fi
fi
PREUN
/bin/sh
if [ $1 -eq 0 ]; then
if [ -f /usr/share/info/am-utils.info.gz ]; then
/sbin/install-info --delete /usr/share/info/am-utils.info.gz /usr/share/info/dir || :
fi
/sbin/service amd stop >/dev/null 2>&1
/sbin/chkconfig --del amd
fi
POSTIN
/bin/sh
/sbin/ldconfig
/sbin/chkconfig --add amd
if [ -f /usr/share/info/am-utils.info.gz ]; then
/sbin/install-info /usr/share/info/am-utils.info.gz /usr/share/info/dir || :
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ]; then
/sbin/service amd condrestart >/dev/null 2>&1
fi
/sbin/ldconfig