summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
authorJoerg Schirottke <master@kanotix.com>2020-02-03 19:49:42 +0100
committerHolger Paradies <retabell@gmx.de>2020-03-02 17:56:53 +0100
commit924e265f2844f13491b324867c55abf4cb071db0 (patch)
treee9dd9166d3f604c687d0714a24f5ecd285ff57f3 /config/chroot_local-hooks
parent0aa9a968bcc397be66f4d86f93196621059ae492 (diff)
downloadkanotix-924e265f2844f13491b324867c55abf4cb071db0.zip
kanotix-924e265f2844f13491b324867c55abf4cb071db0.tar.gz
update virtualbox hook
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