summaryrefslogtreecommitdiff
path: root/libre/vhba-module-libre/vhba-module.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-08 03:51:01 +0000
committerroot <root@rshg054.dnsready.net>2012-08-08 03:51:01 +0000
commitef815a5d80eecd4ba0679a376386741c374e0d1b (patch)
tree266c979656a4dd0976e33c43917d8ba421511bc1 /libre/vhba-module-libre/vhba-module.install
parent6c114b503b2456476f22ff6bdb2b45cac8dac612 (diff)
Wed Aug 8 03:51:00 UTC 2012
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: