diff options
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/virtualbox | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/chroot_local-hooks/virtualbox b/config/chroot_local-hooks/virtualbox index 9fda9ab..dba4fd9 100755 --- a/config/chroot_local-hooks/virtualbox +++ b/config/chroot_local-hooks/virtualbox @@ -1,3 +1,5 @@ #!/bin/bash -[ -x /etc/init.d/vboxdrv ] || exit 0 -/etc/init.d/vboxdrv setup +[ -x /usr/lib/virtualbox/vboxdrv.sh ] || exit 0 +for k in /boot/vmlinuz-*; do + /usr/lib/virtualbox/vboxdrv.sh setup ${k#/boot/vmlinuz-} || : +done |