summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-xconfig/chroot_local-hooks/virtualbox6
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