# HG changeset patch # User Pascal Bellard # Date 1251735448 -7200 # Node ID 60a878ff9a038f0c151d4fb627337296e73506ef # Parent f8cf76fcf2c8c34dc5e267e38b9f1b2c0859d562 get-virtualbox: add kernel module diff -r f8cf76fcf2c8 -r 60a878ff9a03 get-virtualbox/stuff/get-virtualbox --- a/get-virtualbox/stuff/get-virtualbox Mon Aug 31 17:17:44 2009 +0200 +++ b/get-virtualbox/stuff/get-virtualbox Mon Aug 31 18:17:28 2009 +0200 @@ -56,10 +56,12 @@ # Install files cd install [ -d /usr/share/VirtualBox ] && ./uninstall.sh -find /usr /etc > ../before +find /usr /etc /lib > ../before ./install.sh install /usr/share/VirtualBox cd .. -find /usr /etc > after +find /usr /etc /lib > after +sed -i 's/ps -U/ps | grep/' /usr/share/VirtualBox/VBox.sh +echo 'lsmod | grep -q vboxdrv || modprobe vboxdrv' >> /etc/vbox/vbox.cfg mkdir -p $PACKAGE-$VERSION/fs diff -U0 before after | grep ^+/ | sed 's|^\+/||' | \ ( cd / ; cpio -o -H newc ) | ( cd $PACKAGE-$VERSION/fs ; cpio -idm ) @@ -79,6 +81,7 @@ post_install() { $(grep ' udev[atp]' install/install.sh) + chroot "\$1/" depmod -a $(uname -r) } EOT