diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-08-08 00:36:47 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-08-08 00:36:47 -0300 |
commit | 9bb78d53ceba7b16ef8374b20c4ed662e34b789c (patch) | |
tree | 6cc7a0addf66cc2f40d3b476d22573b977eb88ba /libre/vhba-module-libre/vhba-module.install | |
parent | e34f519a15c787fe306d3e46d8d87e0ce414889d (diff) |
vhba-module-libre: new package for libre repo
Diffstat (limited to 'libre/vhba-module-libre/vhba-module.install')
-rw-r--r-- | libre/vhba-module-libre/vhba-module.install | 21 |
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: |