summaryrefslogtreecommitdiffstats
path: root/scripts/unload.sh
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-03 08:44:49 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:36 +1100
commit7e4d6e2f61c97da680591b77fb89a69f69a3af7f (patch)
tree50dffaf47449c074c55c665792cbe76f4f3510df /scripts/unload.sh
parente82e7c61dde6ff9bd799cc4b40e8d718cff6951f (diff)
Fix scripts, move all to scripts folder
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'scripts/unload.sh')
-rwxr-xr-xscripts/unload.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/unload.sh b/scripts/unload.sh
new file mode 100755
index 0000000..a011a2b
--- /dev/null
+++ b/scripts/unload.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+rm_module() {
+ lsmod |grep "^$1\>" && rmmod $1 || true
+}
+
+rm_module avirt_loopbackap
+rm_module avirt_dummyap
+rm_module avirt_core
+echo "Drivers Removed!"