Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > 36e66fb2cce02c2a1eb1223b1fa527a4 > scriptlet

sblim-cmpi-params-1.3.0-2.fc15.x86_64.rpm

PREIN

/bin/sh
# If upgrading, deregister old version
if [ $1 -gt 1 ]; then
  /usr/share/sblim-cmpi-params/provider-register.sh -d \
        -r /usr/share/sblim-cmpi-params/*.registration \
        -m /usr/share/sblim-cmpi-params/*.mof > /dev/null 2>&1 || :;
fi

PREUN

/bin/sh
# Deregister only if not upgrading
if [ $1 -eq 0 ]; then
   /usr/share/sblim-cmpi-params/provider-register.sh -d \
        -r /usr/share/sblim-cmpi-params/*.registration \
        -m /usr/share/sblim-cmpi-params/*.mof > /dev/null 2>&1 || :;
fi

POSTIN

/bin/sh
/sbin/ldconfig
# Register Schema and Provider - this is higly provider specific  
# tog-pegasus needs some schemes registered first  
if [ -x /usr/bin/peg-loadmof.sh ]; then
   peg-loadmof.sh -n root/cimv2 /usr/share/mof/cim-current/*/{CIM_UnixLocalFileSystem}.mof > /dev/null 2>&1 || :;
   /sbin/service tog-pegasus try-restart > /dev/null 2>&1 || :;
fi
# The follwoing script will handle the registration for various CIMOMs
if [ $1 -ge 1 ]; then
   /usr/share/sblim-cmpi-params/provider-register.sh \
        -r /usr/share/sblim-cmpi-params/*.registration \
        -m /usr/share/sblim-cmpi-params/*.mof > /dev/null 2>&1 || :;
fi