diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-02-19 19:05:53 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-02-19 19:05:53 +0100 |
commit | 3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42 (patch) | |
tree | f472df63e228b34a163d187d9fa9b347b56482fb /base/virtualbox-module/post-install | |
parent | 46f16b408c34da2f51f02b5db6ca6005bf402d63 (diff) | |
download | nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.gz nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.bz2 nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.tar.xz nutyx-extra-3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42.zip |
virtualbox-module dans base
Diffstat (limited to 'base/virtualbox-module/post-install')
-rwxr-xr-x | base/virtualbox-module/post-install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/base/virtualbox-module/post-install b/base/virtualbox-module/post-install new file mode 100755 index 000000000..2932233e5 --- /dev/null +++ b/base/virtualbox-module/post-install @@ -0,0 +1,18 @@ +#!/bin/sh +# Mettre a jour les modules +depmod + +# Si pas de groupe vboxusers on en creer un +/usr/bin/getent group vboxusers || /usr/sbin/groupadd -g 80 vboxusers + +# Ajout du module dans /etc/sysconfig/modules +if ! grep "vboxdrv" /etc/sysconfig/modules >/dev/null; then + sed -i '/End/ i vboxdrv' /etc/sysconfig/modules +fi +if ! grep "vboxnetflt" /etc/sysconfig/modules >/dev/null; then + sed -i '/End/ i vboxnetflt' /etc/sysconfig/modules +fi + + +# End of File + |