summarylogtreecommitdiffstats
path: root/decklink.install
diff options
context:
space:
mode:
authorFlorent Thiéry2018-02-01 12:23:16 +0100
committerFlorent Thiéry2018-02-01 12:23:16 +0100
commit1193e65ea556ad66992b869ada0dc72b7f39e4d3 (patch)
tree67a76eab069d14f3294a355373b19a2bd3273c69 /decklink.install
parent332262daa794e574aeec6f53f6d37ef5c143b3a8 (diff)
downloadaur-1193e65ea556ad66992b869ada0dc72b7f39e4d3.tar.gz
unload all modules and also remove modules pre-install
Diffstat (limited to 'decklink.install')
-rw-r--r--decklink.install4
1 files changed, 3 insertions, 1 deletions
diff --git a/decklink.install b/decklink.install
index 85727b2b1d46..077c31151f39 100644
--- a/decklink.install
+++ b/decklink.install
@@ -32,7 +32,9 @@ post_install() {
## arg 2: the old package version
pre_upgrade() {
lsmod | grep blackmagic && modprobe -r blackmagic || true
- rm -f "/lib/modules/*/kernel/drivers/blackmagic.ko"
+ lsmod | grep snd_blackmagic_io && rmmod -f snd_blackmagic_io || true
+ lsmod | grep blackmagic_io && rmmod -f blackmagic_io || true
+ rm -f "/lib/modules/*/kernel/drivers/*blackmagic*.ko"
}
## arg 1: the new package version