summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);