summaryrefslogtreecommitdiffstats
path: root/extra/virtualbox-module/post-install
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:54:56 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:54:56 +0200
commit92cef9b78ce365311f4969a4f0233416fce1f600 (patch)
treebe539ffa97aa6214709e35f612f8c29fabfb939a /extra/virtualbox-module/post-install
parentcf73b2fb02b47d5bf5e424b22c4bd1c162059201 (diff)
downloadnutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.tar.gz
nutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.tar.bz2
nutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.tar.xz
nutyx-pakxe-92cef9b78ce365311f4969a4f0233416fce1f600.zip
Ajout de virtualbox-module#3.0.4-1
Diffstat (limited to 'extra/virtualbox-module/post-install')
-rwxr-xr-xextra/virtualbox-module/post-install18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/virtualbox-module/post-install b/extra/virtualbox-module/post-install
new file mode 100755
index 000000000..2932233e5
--- /dev/null
+++ b/extra/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
+