summaryrefslogtreecommitdiffstats
path: root/scripts/unload.sh
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-29 17:43:12 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-29 17:45:19 +1100
commitf55fa7657dd217a71af9198e0bc5754c0cd335ce (patch)
treea89858857e3e0ec7672866d086e12b3c58cf84e3 /scripts/unload.sh
parent96aa81e1426e64875850616e12c3415231ed14f8 (diff)
parent188712f58b309d94d26d7468a792326c464a7eda (diff)
Merge remote-tracking branch 'agl/master' into flounder
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
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!"