summaryrefslogtreecommitdiff
path: root/pcr/vhba-module-parabola-lts/vhba-module.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/vhba-module-parabola-lts/vhba-module.install')
-rw-r--r--pcr/vhba-module-parabola-lts/vhba-module.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/vhba-module-parabola-lts/vhba-module.install b/pcr/vhba-module-parabola-lts/vhba-module.install
new file mode 100644
index 000000000..04d26b27b
--- /dev/null
+++ b/pcr/vhba-module-parabola-lts/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: