summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/virtualbox
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/virtualbox')
-rwxr-xr-xconfig/chroot_local-hooks/virtualbox4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/virtualbox b/config/chroot_local-hooks/virtualbox
new file mode 100755
index 0000000..d468526
--- /dev/null
+++ b/config/chroot_local-hooks/virtualbox
@@ -0,0 +1,4 @@
+#!/bin/bash
+[ -x /etc/init.d/vboxdrv ] || exit 0
+export KERN_DIR="$(ls -d /usr/src/linux-headers-* | head -n1)"
+/etc/init.d/vboxdrv setup