diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-08-24 21:04:10 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-08-24 21:04:10 +0200 |
commit | 98b9b5ac0ccca9207e0a3962835f4995b6323926 (patch) | |
tree | 5492f7ff7910c8721d107011ce6c155ce01f3578 /acompiler/virtualbox-module/post-install | |
parent | 6540fde3beb8417b49ce541330ae95ea93262853 (diff) | |
download | nutyx-pakxe-98b9b5ac0ccca9207e0a3962835f4995b6323926.tar.gz nutyx-pakxe-98b9b5ac0ccca9207e0a3962835f4995b6323926.tar.bz2 nutyx-pakxe-98b9b5ac0ccca9207e0a3962835f4995b6323926.tar.xz nutyx-pakxe-98b9b5ac0ccca9207e0a3962835f4995b6323926.zip |
virtualbox-module dans acompiler
Diffstat (limited to 'acompiler/virtualbox-module/post-install')
-rwxr-xr-x | acompiler/virtualbox-module/post-install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/acompiler/virtualbox-module/post-install b/acompiler/virtualbox-module/post-install new file mode 100755 index 000000000..2932233e5 --- /dev/null +++ b/acompiler/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 + |