summaryrefslogtreecommitdiffstats
path: root/scripts/unload.sh
blob: a18e1f579dc6cf04378b16207c60a25bd05e9b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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!"