diff options
author | Sibelle <lesibel@free.fr> | 2011-07-14 10:40:59 +0200 |
---|---|---|
committer | Sibelle <lesibel@free.fr> | 2011-07-14 10:40:59 +0200 |
commit | b886c52ace29cfdc4cb5e34f204765bab6fbef1f (patch) | |
tree | 0b4007a970c12e35a235d6952e27f96d27e17d13 | |
parent | fe5c2441203e39eda26039b1096ed88b7b8fdd65 (diff) | |
download | nutyx-extra-b886c52ace29cfdc4cb5e34f204765bab6fbef1f.tar.gz nutyx-extra-b886c52ace29cfdc4cb5e34f204765bab6fbef1f.tar.bz2 nutyx-extra-b886c52ace29cfdc4cb5e34f204765bab6fbef1f.tar.xz nutyx-extra-b886c52ace29cfdc4cb5e34f204765bab6fbef1f.zip |
virtualbox-bin 4.0.10
-4 ajout post-install
-rwxr-xr-x | extra/virtualbox-bin/Pkgfile | 2 | ||||
-rw-r--r-- | extra/virtualbox-bin/post-install | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/extra/virtualbox-bin/Pkgfile b/extra/virtualbox-bin/Pkgfile index 062af386a..1636ad3a6 100755 --- a/extra/virtualbox-bin/Pkgfile +++ b/extra/virtualbox-bin/Pkgfile @@ -7,7 +7,7 @@ name=virtualbox-bin version=4.0.10 -release=3 +release=4 _release=72479 _releaseExt=72436 _name=Oracle_VM_VirtualBox_Extension_Pack diff --git a/extra/virtualbox-bin/post-install b/extra/virtualbox-bin/post-install new file mode 100644 index 000000000..2932233e5 --- /dev/null +++ b/extra/virtualbox-bin/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 + |