From c8729cab8302ab82e01135a22fb9fa9704f1559b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Mar 2012 00:01:20 +0000 Subject: Tue Mar 27 00:01:20 UTC 2012 --- community-testing/vhba-module/vhba-module.install | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 community-testing/vhba-module/vhba-module.install (limited to 'community-testing/vhba-module/vhba-module.install') 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: -- cgit v1.2.3-54-g00ecf