summaryrefslogtreecommitdiff
path: root/libre/vhba-module-libre/vhba-module.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/vhba-module-libre/vhba-module.install')
-rwxr-xr-xlibre/vhba-module-libre/vhba-module.install21
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 100755
index 000000000..8bd740943
--- /dev/null
+++ b/libre/vhba-module-libre/vhba-module.install
@@ -0,0 +1,21 @@
+_updatemod() {
+ echo " > Updating module dependencies..."
+ EXTRAMODULES='extramodules-3.6-LIBRE'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_upgrade() {
+ getent group cdemu &>/dev/null || groupadd -r cdemu
+ _updatemod
+}
+
+post_remove() {
+ _updatemod
+ groupdel cdemu
+}
+
+# vim:set ts=2 sw=2 et: