summaryrefslogtreecommitdiffstats
path: root/base/virtualbox-module/post-install
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-01-26 20:03:26 +0100
committertnut <thierryn1 at hispeed dot ch>2010-01-26 20:03:26 +0100
commitcd40a7eb5540476366198ecf11fee04f4d63d76e (patch)
tree505c490bc361014226be5bfc50f4213312a2fc50 /base/virtualbox-module/post-install
parent7e11b4410a39e74b79f4f7272eae010342c1277d (diff)
downloadnutyx-pakxe-cd40a7eb5540476366198ecf11fee04f4d63d76e.tar.gz
nutyx-pakxe-cd40a7eb5540476366198ecf11fee04f4d63d76e.tar.bz2
nutyx-pakxe-cd40a7eb5540476366198ecf11fee04f4d63d76e.tar.xz
nutyx-pakxe-cd40a7eb5540476366198ecf11fee04f4d63d76e.zip
Maj de virtualbox-module#3.1.2-6, déplacé dans base
Diffstat (limited to 'base/virtualbox-module/post-install')
-rwxr-xr-xbase/virtualbox-module/post-install18
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
+