summaryrefslogtreecommitdiffstats
path: root/openlmi-mof-register
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-04-26 08:36:17 +0200
committerMichal Minar <miminar@redhat.com>2013-04-26 10:18:20 +0200
commitdc80290506189ef80da0c1d8c0e733574ab7eef0 (patch)
treed991ab12d12194f81f553add162e18438bc0d6a2 /openlmi-mof-register
parent3126884ffe36e05fc4785b4cfa980a34fcae1439 (diff)
downloadopenlmi-providers-dc80290506189ef80da0c1d8c0e733574ab7eef0.zip
openlmi-providers-dc80290506189ef80da0c1d8c0e733574ab7eef0.tar.gz
openlmi-providers-dc80290506189ef80da0c1d8c0e733574ab7eef0.tar.xz
openlmi-cimmof used by openlmi-mof-register
Also appended for installation to libexec with cmake.
Diffstat (limited to 'openlmi-mof-register')
-rwxr-xr-xopenlmi-mof-register5
1 files changed, 5 insertions, 0 deletions
diff --git a/openlmi-mof-register b/openlmi-mof-register
index d7918e0..521c967 100755
--- a/openlmi-mof-register
+++ b/openlmi-mof-register
@@ -94,6 +94,11 @@ function unregister()
/usr/bin/systemctl reload-or-try-restart sblim-sfcb.service
fi
+ if [ -x $(dirname $0)/openlmi-cimmof ]; then
+ $(dirname $0)/openlmi-cimmof -n $namespace delete ${mofs[@]}
+ else
+ /usr/libexec/openlmi-cimmof -n $namespace delete ${mofs[@]}
+ fi
if [ -n "$reg" -a $HAS_PEGASUS -eq 1 ];
then
for provider in $(sed -n 's/ *location: *//p' "$reg" | sort | uniq);