summarylogtreecommitdiffstats
path: root/easycap-smi2021-modules.install
diff options
context:
space:
mode:
authorDavid Manouchehri2015-08-26 11:37:53 -0400
committerDavid Manouchehri2015-08-26 11:37:53 -0400
commit3e56bed3f8081613a42855d5ade06da98b4f10a5 (patch)
tree75cd967a56776ec07068608c93ee5777da8ab1f4 /easycap-smi2021-modules.install
downloadaur-3e56bed3f8081613a42855d5ade06da98b4f10a5.tar.gz
Initial import from AUR3.
Diffstat (limited to 'easycap-smi2021-modules.install')
-rw-r--r--easycap-smi2021-modules.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/easycap-smi2021-modules.install b/easycap-smi2021-modules.install
new file mode 100644
index 000000000000..f319280de093
--- /dev/null
+++ b/easycap-smi2021-modules.install
@@ -0,0 +1,22 @@
+_depmod() {
+ _major=$(pacman -Q linux | grep -Po "\d+\.\d+")
+ _extramodules=extramodules-$_major-ARCH
+ depmod $(cat /usr/lib/modules/$_extramodules/version)
+}
+
+post_install() {
+ cat << EOF
+===> You must load smi2021 module before using EasyCap:
+===> # modprobe smi2021
+EOF
+ _depmod
+}
+
+post_upgrade() {
+ _depmod
+ echo 'In order to use the new version, reload all the module(s) manually.'
+}
+
+post_remove() {
+ _depmod
+} \ No newline at end of file