summaryrefslogtreecommitdiff
path: root/libre/vhba-module-libre/vhba-module.install
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-08-08 09:16:29 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-08-08 09:16:29 -0300
commit91b1c319d6364307eb3bfcb0768e3eaa09df7c17 (patch)
tree91a5fcd8f433130db7dfc8060b66f98103949797 /libre/vhba-module-libre/vhba-module.install
parent0c2419984cf5501fc1ba410e09f61fa4112c7d2a (diff)
parent9bb78d53ceba7b16ef8374b20c4ed662e34b789c (diff)
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Conflicts: libre/kdelibs-libre/PKGBUILD
Diffstat (limited to 'libre/vhba-module-libre/vhba-module.install')
-rw-r--r--libre/vhba-module-libre/vhba-module.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/libre/vhba-module-libre/vhba-module.install b/libre/vhba-module-libre/vhba-module.install
new file mode 100644
index 000000000..ac27991cc
--- /dev/null
+++ b/libre/vhba-module-libre/vhba-module.install
@@ -0,0 +1,21 @@
+_updatemod() {
+ echo " > Updating module dependencies..."
+ EXTRAMODULES='extramodules-3.5-LIBRE'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_upgrade() {
+ getent group cdemu &>/dev/null || groupadd cdemu
+ _updatemod
+}
+
+post_remove() {
+ _updatemod
+ groupdel cdemu
+}
+
+# vim:set ts=2 sw=2 et: