wok rev 4004

get-virtualbox: add kernel module
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 31 18:17:28 2009 +0200 (2009-08-31)
parents f8cf76fcf2c8
children 70a435a7d961
files get-virtualbox/stuff/get-virtualbox
line diff
     1.1 --- a/get-virtualbox/stuff/get-virtualbox	Mon Aug 31 17:17:44 2009 +0200
     1.2 +++ b/get-virtualbox/stuff/get-virtualbox	Mon Aug 31 18:17:28 2009 +0200
     1.3 @@ -56,10 +56,12 @@
     1.4  # Install files
     1.5  cd install 
     1.6  [ -d /usr/share/VirtualBox ] && ./uninstall.sh
     1.7 -find /usr /etc > ../before
     1.8 +find /usr /etc /lib > ../before
     1.9  ./install.sh install /usr/share/VirtualBox 
    1.10  cd ..
    1.11 -find /usr /etc > after
    1.12 +find /usr /etc /lib > after
    1.13 +sed -i 's/ps -U/ps | grep/' /usr/share/VirtualBox/VBox.sh
    1.14 +echo 'lsmod | grep -q vboxdrv || modprobe vboxdrv' >> /etc/vbox/vbox.cfg
    1.15  mkdir -p $PACKAGE-$VERSION/fs
    1.16  diff -U0 before after | grep ^+/ | sed 's|^\+/||' | \
    1.17  ( cd / ; cpio -o -H newc ) | ( cd $PACKAGE-$VERSION/fs ; cpio -idm )
    1.18 @@ -79,6 +81,7 @@
    1.19  post_install()
    1.20  {
    1.21  $(grep '  udev[atp]' install/install.sh)
    1.22 +    chroot "\$1/" depmod -a $(uname -r)
    1.23  }
    1.24  EOT
    1.25