summaryrefslogtreecommitdiffstats
path: root/scripts/unload.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/unload.sh')
-rwxr-xr-xscripts/unload.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/unload.sh b/scripts/unload.sh
new file mode 100755
index 0000000..a18e1f5
--- /dev/null
+++ b/scripts/unload.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+rmdir /config/snd-avirt/streams/playback_*
+rmdir /config/snd-avirt/streams/capture_*
+
+rm_module() {
+ lsmod |grep "^$1\>" && rmmod $1 || true
+}
+
+rm_module snd_avirt_ap_loopback
+rm_module snd_avirt_ap_dummy
+rm_module snd_avirt_core
+echo "Drivers Removed!"