Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > 7755b53fb597203764957ac7cdd594f0 > scriptlet

fcoe-utils-1.0.7-5.el5.i386.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
        /sbin/service fcoe stop > /dev/null 2>&1
        /sbin/chkconfig --del fcoe
fi

POSTIN

/bin/sh
/sbin/chkconfig --add fcoe

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
        /sbin/service fcoe condrestart > /dev/null  2>&1 || :
fi

Triggers

fcoe-utils <= 1.0.7-3

/bin/sh
if [ -x /etc/rc.d/init.d/fcoe-utils ]; then
  /sbin/service fcoe-utils stop > /dev/null 2>&1
  /sbin/chkconfig fcoe-utils off
  # now copy an updated file, which we need to do proper condrestart
  sed 's/\/var\/lock\/subsys\/fcoe/\/var\/lock\/subsys\/fcoe-utils/' /etc/rc.d/init.d/fcoe > /etc/rc.d/init.d/fcoe-utils
fi

fcoe-utils <= 1.0.7-3

/bin/sh
if [ -x /etc/rc.d/init.d/fcoe-utils ]; then
  rm -f /etc/rc.d/init.d/fcoe-utils # this file should be already deleted, but just in case ...
fi