summaryrefslogtreecommitdiffstats
path: root/base/virtualbox-module/post-install
diff options
context:
space:
mode:
authorguy <guy@rougemin.(none)>2011-02-19 19:17:14 +0100
committerguy <guy@rougemin.(none)>2011-02-19 19:17:14 +0100
commit260a7414149ea2c18c5250d1617dd1f547815910 (patch)
tree4f6c98135c8cf314d19f8c6ab13fffcc80f98145 /base/virtualbox-module/post-install
parent5e2a1dc9fa7573a30d2b2b14cfd82f8e67b1a6d2 (diff)
parent3e1f37e3e3d0c87f90c3ee88b60eabf984d7fd42 (diff)
downloadnutyx-extra-260a7414149ea2c18c5250d1617dd1f547815910.tar.gz
nutyx-extra-260a7414149ea2c18c5250d1617dd1f547815910.tar.bz2
nutyx-extra-260a7414149ea2c18c5250d1617dd1f547815910.tar.xz
nutyx-extra-260a7414149ea2c18c5250d1617dd1f547815910.zip
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/pakxe
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
+