PREIN
/bin/sh
# If upgrading, deregister old version
if [ "$1" -gt 1 ]; then
# delete indication filters
/usr/bin/openlmi-mof-register --just-mofs -n root/interop unregister \
/usr/share/openlmi-networking/70_LMI_NetworkingIndicationFilters.mof || :;
/usr/bin/openlmi-mof-register --just-mofs -n root/interop -c tog-pegasus unregister \
/usr/share/openlmi-networking/90_LMI_Networking_Profile.mof || :;
/usr/bin/openlmi-mof-register -v 0.2.2 unregister \
/usr/share/openlmi-networking/60_LMI_Networking.mof \
/usr/share/openlmi-networking/60_LMI_Networking.reg || :;
fi >> /var/log/openlmi-install.log 2>&1
PREUN
/bin/sh
# Deregister only if not upgrading
if [ "$1" -eq 0 ]; then
# delete indication filters
/usr/bin/openlmi-mof-register --just-mofs -n root/interop unregister \
/usr/share/openlmi-networking/70_LMI_NetworkingIndicationFilters.mof || :;
/usr/bin/openlmi-mof-register --just-mofs -n root/interop -c tog-pegasus unregister \
/usr/share/openlmi-networking/90_LMI_Networking_Profile.mof || :;
/usr/bin/openlmi-mof-register -v 0.2.2 unregister \
/usr/share/openlmi-networking/60_LMI_Networking.mof \
/usr/share/openlmi-networking/60_LMI_Networking.reg || :;
fi >> /var/log/openlmi-install.log 2>&1
POSTIN
/bin/sh
/sbin/ldconfig
# Register Schema and Provider
if [ "$1" -ge 1 ]; then
/usr/bin/openlmi-mof-register -v 0.2.2 register \
/usr/share/openlmi-networking/60_LMI_Networking.mof \
/usr/share/openlmi-networking/60_LMI_Networking.reg || :;
# install indication filters
/usr/bin/openlmi-mof-register --just-mofs -n root/interop register \
/usr/share/openlmi-networking/70_LMI_NetworkingIndicationFilters.mof || :;
/usr/bin/openlmi-mof-register --just-mofs -n root/interop -c tog-pegasus register \
/usr/share/openlmi-networking/90_LMI_Networking_Profile.mof || :;
fi >> /var/log/openlmi-install.log 2>&1