diff options
author | root <root@rshg054.dnsready.net> | 2012-03-28 00:01:38 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-28 00:01:38 +0000 |
commit | a26ce336126d18cde915c2331250b8dfbffc24f8 (patch) | |
tree | dd0ee1c89d9c153abfde0b4e7878a2931893ed4c /community/vhba-module/vhba-module.install | |
parent | c8729cab8302ab82e01135a22fb9fa9704f1559b (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.install | 20 |
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: |