summaryrefslogtreecommitdiff
path: root/pcr/vhba-module-parabola-grsec/vhba-module.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-24 19:40:36 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-24 19:40:36 -0300
commite8319462e19058a8d28bc77f03b6379af7cb9e08 (patch)
treee3698fd0dc40546e8390bded82355d149055bebc /pcr/vhba-module-parabola-grsec/vhba-module.install
parenta440b2cc73827e1c46a817f60532f11392273753 (diff)
{{bbswitch,lirc,vhba-module}-parabola-{lts,grsec},{acpi_call,tp_smapi}-parabola-grsec}: move to [pcr] because those packages aren't official on Arch yet
Diffstat (limited to 'pcr/vhba-module-parabola-grsec/vhba-module.install')
-rw-r--r--pcr/vhba-module-parabola-grsec/vhba-module.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/vhba-module-parabola-grsec/vhba-module.install b/pcr/vhba-module-parabola-grsec/vhba-module.install
new file mode 100644
index 000000000..04d26b27b
--- /dev/null
+++ b/pcr/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: