summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAwesomeHaircut2020-03-28 09:56:16 -0700
committerAwesomeHaircut2020-03-28 09:56:16 -0700
commitbf96949d6a5522d51469755c8a0c0985e47bb852 (patch)
tree23b271b4dd547bc804e8893f7d211fa8724b3682
parent4586966807ed0cbcd1b8e1491acdff53ad724907 (diff)
downloadaur-bf96949d6a5522d51469755c8a0c0985e47bb852.tar.gz
Fixed module loading
-rw-r--r--droidcam.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/droidcam.install b/droidcam.install
index accab0a0bbd..52167625fe9 100644
--- a/droidcam.install
+++ b/droidcam.install
@@ -1,6 +1,5 @@
post_install() {
- _extramodules="extramodules-$(uname -r | cut -f-2 -d'.')-$(uname -r|sed -e 's/.*-//g')"
- depmod $(cat /usr/lib/modules/${_extramodules}/version)
+ insmod /lib/modules/"$(uname -r)"/extramodules/v4l2loopback_dc.ko.gz
}
post_upgrade() {
@@ -8,7 +7,8 @@ post_upgrade() {
}
post_remove() {
- post_install
+ rmmod /lib/modules/"$(uname -r)"/extramodules/v4l2loopback_dc.ko.gz
}
+
# vim: ts=2 sw=2 et: