PREIN
/bin/sh
# If upgrading, deregister old version
if [ "$1" -gt 1 ]; then
/usr/bin/openlmi-mof-register --just-mofs unregister \
/usr/share/openlmi-providers/05_LMI_Qualifiers.mof \
/usr/share/openlmi-providers/30_LMI_Jobs.mof \
> /dev/null 2>&1 || :;
fi
PREUN
/bin/sh
# Deregister only if not upgrading
if [ "$1" -eq 0 ]; then
/usr/bin/openlmi-mof-register --just-mofs unregister \
/usr/share/openlmi-providers/05_LMI_Qualifiers.mof \
/usr/share/openlmi-providers/30_LMI_Jobs.mof \
> /dev/null 2>&1 || :;
fi
POSTIN
/bin/sh
/sbin/ldconfig
if [ "$1" -ge 1 ]; then
/usr/bin/openlmi-mof-register --just-mofs register \
/usr/share/openlmi-providers/05_LMI_Qualifiers.mof \
/usr/share/openlmi-providers/30_LMI_Jobs.mof \
> /dev/null 2>&1 || :;
fi