summaryrefslogtreecommitdiff
path: root/community-testing/vhba-module/vhba-module.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-27 00:01:20 +0000
committerroot <root@rshg054.dnsready.net>2012-03-27 00:01:20 +0000
commitc8729cab8302ab82e01135a22fb9fa9704f1559b (patch)
treef272d52815dcaf543aaf60177bdfc7d28e22e201 /community-testing/vhba-module/vhba-module.install
parentcf507a0dbf5ee8258e49256049b420ac8e191387 (diff)
Tue Mar 27 00:01:20 UTC 2012
Diffstat (limited to 'community-testing/vhba-module/vhba-module.install')
-rw-r--r--community-testing/vhba-module/vhba-module.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/community-testing/vhba-module/vhba-module.install b/community-testing/vhba-module/vhba-module.install
new file mode 100644
index 000000000..73029498f
--- /dev/null
+++ b/community-testing/vhba-module/vhba-module.install
@@ -0,0 +1,22 @@
+post_upgrade() {
+ ! grep -q 'cdemu' /etc/group && groupadd cdemu
+ echo " > Updating module dependencies..."
+ EXTRAMODULES='extramodules-3.2-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
+}
+
+
+post_install() {
+ echo " > Adding 'cdemu' group"
+ ! grep -q 'cdemu' /etc/group && groupadd cdemu
+ echo " > Add 'vhba' to your modules array to autoload it"
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+ echo "Removing 'cdemu' group"
+ groupdel cdemu
+}
+
+# vim:set ts=2 sw=2 et: