summaryrefslogtreecommitdiff
path: root/libre/tp_smapi/kmod.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-01 07:52:09 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-01 07:59:21 -0300
commit3f2a8eca7c7bdcd7bcdc9b67e00f02cdef9002bf (patch)
tree8a2143d69f3b7f572060b0331fa10cd77e7b67b2 /libre/tp_smapi/kmod.install
parentd5730eabb036bfa84f5831fa592d49222cd6ad5e (diff)
downloadabslibre-3f2a8eca7c7bdcd7bcdc9b67e00f02cdef9002bf.tar.gz
abslibre-3f2a8eca7c7bdcd7bcdc9b67e00f02cdef9002bf.tar.bz2
abslibre-3f2a8eca7c7bdcd7bcdc9b67e00f02cdef9002bf.zip
remove parabola suffix and add complex pkgrel on kernel module packages
Diffstat (limited to 'libre/tp_smapi/kmod.install')
-rw-r--r--libre/tp_smapi/kmod.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/libre/tp_smapi/kmod.install b/libre/tp_smapi/kmod.install
new file mode 100644
index 000000000..40caa464f
--- /dev/null
+++ b/libre/tp_smapi/kmod.install
@@ -0,0 +1,14 @@
+_EXTRAMODULES=
+
+post_install() {
+ echo ">>> Updating module dependencies. Please wait ..."
+ depmod "$(cat /usr/lib/modules/$_EXTRAMODULES/version)" >/dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}