aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/unload.sh
diff options
context:
space:
mode:
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!"