diff options
author | Florent Thiéry | 2018-02-01 12:23:16 +0100 |
---|---|---|
committer | Florent Thiéry | 2018-02-01 12:23:16 +0100 |
commit | 1193e65ea556ad66992b869ada0dc72b7f39e4d3 (patch) | |
tree | 67a76eab069d14f3294a355373b19a2bd3273c69 /decklink.install | |
parent | 332262daa794e574aeec6f53f6d37ef5c143b3a8 (diff) | |
download | aur-1193e65ea556ad66992b869ada0dc72b7f39e4d3.tar.gz |
unload all modules and also remove modules pre-install
Diffstat (limited to 'decklink.install')
-rw-r--r-- | decklink.install | 4 |
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 |