From b4db3e1827435428bd4edad60bbd12b2ac603938 Mon Sep 17 00:00:00 2001
From: nathan <nathan>
Date: Fri, 9 Feb 2007 20:35:36 +0000
Subject: [PATCH] testing that landing to head keeps history

---
 lnet/utils/lnetunload | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100755 lnet/utils/lnetunload

diff --git a/lnet/utils/lnetunload b/lnet/utils/lnetunload
new file mode 100755
index 0000000000..d9fd908841
--- /dev/null
+++ b/lnet/utils/lnetunload
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+lnds=$(echo k{sock,qsw,gm,{open,i,v,o2,c}ib,ra,ptl,mx}lnd)
+
+if lctl network down > /dev/null 2>&1; then
+    for mod in $lnds; do
+	if grep "^$mod" /proc/modules >/dev/null 2>&1; then
+	    rmmod $mod
+	fi
+    done
+
+    rmmod lnet 
+    rmmod libcfs
+fi
-- 
GitLab