diff options
Diffstat (limited to 'libre/vhba-module/kmod.install')
-rw-r--r-- | libre/vhba-module/kmod.install | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libre/vhba-module/kmod.install b/libre/vhba-module/kmod.install index 08ecfbfba..2c7652580 100644 --- a/libre/vhba-module/kmod.install +++ b/libre/vhba-module/kmod.install @@ -1,20 +1,15 @@ -_EXTRAMODULES= - -_post_install() { - echo ">>> Updating module dependencies. Please wait ..." - depmod "$(cat /usr/lib/modules/$_EXTRAMODULES/version)" >/dev/null 2>&1 -} post_install() { - _post_install + post_upgrade $1 0 getent group cdemu &>/dev/null || groupadd -r cdemu } post_upgrade() { - post_install + _EXTRAMODULES=extramodules-4.11 + depmod "$(cat /usr/lib/modules/$_EXTRAMODULES/version)" >/dev/null 2>&1 } post_remove() { - _post_install + post_upgrade $1 0 groupdel cdemu } |