summaryrefslogtreecommitdiffstats
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
parent3126884ffe36e05fc4785b4cfa980a34fcae1439 (diff)
downloadopenlmi-providers-dc80290506189ef80da0c1d8c0e733574ab7eef0.tar.gz
openlmi-providers-dc80290506189ef80da0c1d8c0e733574ab7eef0.tar.xz
openlmi-providers-dc80290506189ef80da0c1d8c0e733574ab7eef0.zip
openlmi-cimmof used by openlmi-mof-register
Also appended for installation to libexec with cmake.
-rw-r--r--CMakeLists.txt1
-rwxr-xr-xopenlmi-mof-register5
2 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 100059f..f25850e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,6 +37,7 @@ add_subdirectory(tools)
install(PROGRAMS openlmi-mof-register DESTINATION bin)
install(PROGRAMS openlmi-register-pegasus DESTINATION libexec)
+install(PROGRAMS openlmi-cimmof DESTINATION libexec)
install(FILES cmake/modules/OpenLMIMacros.cmake DESTINATION share/cmake/Modules)
install(FILES cmake/modules/FindCMPI.cmake DESTINATION share/cmake/Modules)
install(FILES cmake/modules/FindKonkretCMPI.cmake DESTINATION share/cmake/Modules)
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);