Install modules, too.

This commit is contained in:
Lon Hohberger 2009-08-21 14:12:58 -04:00
parent 6ff52eecf9
commit 1e3ee504f9
2 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,11 @@ install: all
install -d /usr/sbin; \
fi
install -m755 ${TARGETS} /usr/sbin
# XXX hardcoded sbin
if [ ! -d /usr/lib64/fence_virt ]; then \
install -d /usr/lib64/fence_virt ; \
fi
install -m755 ${MODULES} /usr/lib64/fence_virt
clean:
rm -f ${TARGETS} *.o *.d *~

View File

@ -68,12 +68,16 @@ main(int argc, char **argv)
if (plugin_load("./libvirt.so") < 0) {
printf("Doom\n");
}
if (plugin_load("/usr/lib64/fence_virt/libvirt.so") < 0) {
printf("Doom\n");
}
#endif
plugin_dump();
p = plugin_find(val);
if (!p) {
printf("Could not find plugin \"%s\n", val);
return 1;
}
if (p->init(&libvirt_context, config) < 0) {