---
src/nid/configure_tipc.in | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/nid/configure_tipc.in b/src/nid/configure_tipc.in
index a63c97046..43ddb06e1 100644
--- a/src/nid/configure_tipc.in
+++ b/src/nid/configure_tipc.in
@@ -221,11 +221,13 @@ function tipc_duplicate_node_detect ()
function tipc_configure ()
{
echo "Inserting TIPC mdoule..."
-
- if ! test -f "$TIPC_MODULE" ; then
- modprobe tipc
+
+ # Prefer using modprobe to insmod as modprobe takes care of
+ # loading all dependencies if any. If any dependent module
+ # has not yet loaded, insmod will get failed.
+ if modprobe tipc ; then
RM_TIPC_MODULE="modprobe -r tipc"
- else
+ else
insmod "$TIPC_MODULE"
RM_TIPC_MODULE="rmmod $TIPC_MODULE"
fi
--
2.17.1
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel