PREIN
/bin/sh
if [ $1 -gt 1 ]
then
/usr/share/sblim-gather/provider-register.sh -t pegasus -d \
-r /usr/share/sblim-gather/Linux_XenMetric.registration /usr/share/sblim-gather/Linux_KVMMetric.registration -m /usr/share/sblim-gather/Linux_XenMetric.mof /usr/share/sblim-gather/Linux_KVMMetric.mof > /dev/null 2>&1 || :;
# don't let registration failure when server not running fail upgrade!
fi
PREUN
/bin/sh
# Deregister only if not upgrading
if [ $1 -eq 0 ]
then
/usr/share/sblim-gather/provider-register.sh -t pegasus -d \
-r /usr/share/sblim-gather/Linux_XenMetric.registration /usr/share/sblim-gather/Linux_KVMMetric.registration -m /usr/share/sblim-gather/Linux_XenMetric.mof /usr/share/sblim-gather/Linux_KVMMetric.mof > /dev/null 2>&1 || :;
# don't let registration failure when server not running fail erase!
fi
POSTIN
/bin/sh
/sbin/ldconfig
if [ $1 -ge 1 ]
then
/usr/share/sblim-gather/provider-register.sh -t pegasus \
-r /usr/share/sblim-gather/Linux_XenMetric.registration /usr/share/sblim-gather/Linux_KVMMetric.registration -m /usr/share/sblim-gather/Linux_XenMetric.mof /usr/share/sblim-gather/Linux_KVMMetric.mof > /dev/null 2>&1 || :;
# don't let registration failure when server not running fail install!
fi
POSTUN
/bin/sh
/sbin/ldconfig