Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > 8b470e863c2336689667accd81606126 > scriptlet

am-utils-6.1.5-18.fc15.x86_64.rpm

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