summaryrefslogtreecommitdiff
path: root/community/vhba-module/vhba-module.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-28 00:01:38 +0000
committerroot <root@rshg054.dnsready.net>2012-03-28 00:01:38 +0000
commita26ce336126d18cde915c2331250b8dfbffc24f8 (patch)
treedd0ee1c89d9c153abfde0b4e7878a2931893ed4c /community/vhba-module/vhba-module.install
parentc8729cab8302ab82e01135a22fb9fa9704f1559b (diff)
Wed Mar 28 00:01:38 UTC 2012
Diffstat (limited to 'community/vhba-module/vhba-module.install')
-rw-r--r--community/vhba-module/vhba-module.install20
1 files changed, 13 insertions, 7 deletions
diff --git a/community/vhba-module/vhba-module.install b/community/vhba-module/vhba-module.install
index 665a1d3c5..73029498f 100644
--- a/community/vhba-module/vhba-module.install
+++ b/community/vhba-module/vhba-module.install
@@ -1,16 +1,22 @@
-post_install() {
- echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
- echo ">> This module needs to be recompiled for every kernel version upgrade."
+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_upgrade() {
- post_install
+
+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() {
- EXTRAMODULES='extramodules-3.2-ARCH'
- depmod $(cat /lib/modules/$EXTRAMODULES/version)
+ post_upgrade
+ echo "Removing 'cdemu' group"
+ groupdel cdemu
}
+# vim:set ts=2 sw=2 et: