summaryrefslogtreecommitdiff
path: root/libre/vhba-module-parabola-grsec/vhba-module.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-23 01:36:15 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-23 01:36:15 -0300
commit28529fefc594bf968ca30905a5a2d6c9ae1d6f3c (patch)
tree4c2428f259eb8d14153d27c38659293f4a970f03 /libre/vhba-module-parabola-grsec/vhba-module.install
parentb1852341008bbce6f23ebc4c300112d98c96ab8d (diff)
add modifications from coadde and lukeshu contributions for linux-libre* and dependencies
Diffstat (limited to 'libre/vhba-module-parabola-grsec/vhba-module.install')
-rw-r--r--libre/vhba-module-parabola-grsec/vhba-module.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/libre/vhba-module-parabola-grsec/vhba-module.install b/libre/vhba-module-parabola-grsec/vhba-module.install
new file mode 100644
index 000000000..04d26b27b
--- /dev/null
+++ b/libre/vhba-module-parabola-grsec/vhba-module.install
@@ -0,0 +1,20 @@
+_updatemod() {
+ _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD
+ depmod $(cat /usr/lib/modules/${_extramodules}/version)
+}
+
+post_install() {
+ getent group cdemu &>/dev/null || groupadd -r cdemu
+ _updatemod
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ _updatemod
+ groupdel cdemu
+}
+
+# vim:set ts=2 sw=2 et: