diff options
Diffstat (limited to 'libre/vhba-module-libre')
-rw-r--r-- | libre/vhba-module-libre/60-vhba.rules | 1 | ||||
-rw-r--r-- | libre/vhba-module-libre/vhba-module.install | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/libre/vhba-module-libre/60-vhba.rules b/libre/vhba-module-libre/60-vhba.rules new file mode 100644 index 000000000..39ae3a4ec --- /dev/null +++ b/libre/vhba-module-libre/60-vhba.rules @@ -0,0 +1 @@ +ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess" diff --git a/libre/vhba-module-libre/vhba-module.install b/libre/vhba-module-libre/vhba-module.install new file mode 100644 index 000000000..793cffd8d --- /dev/null +++ b/libre/vhba-module-libre/vhba-module.install @@ -0,0 +1,22 @@ +EXTRAMODULES= + +_updatemod() { + echo " > Updating module dependencies..." + 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: |