wrapper.patch 955 B

123456789101112131415161718192021222324252627
  1. --- VirtualBox-5.1.0_BETA2.orig/src/VBox/Installer/linux/VBox.sh 2016-06-06 21:48:53.000000000 +0300
  2. +++ VirtualBox-5.1.0_BETA2/src/VBox/Installer/linux/VBox.sh 2016-06-17 21:24:47.111130079 +0300
  3. @@ -56,16 +56,21 @@
  4. if [ "$1" = "shutdown" ]; then
  5. SHUTDOWN="true"
  6. -elif ! lsmod|grep -q vboxdrv; then
  7. - cat << EOF
  8. +elif [ -x /usr/libexec/virt-wrapper ]; then
  9. + /usr/libexec/virt-wrapper virtualbox || exit 1
  10. +
  11. + if ! lsmod|grep -q vboxdrv; then
  12. + cat << EOF
  13. WARNING: The vboxdrv kernel module is not loaded. Either there is no module
  14. available for the current kernel (`uname -r`) or it failed to
  15. load. Please recompile the kernel module and install it by
  16. sudo /sbin/vboxconfig
  17. + load.
  18. You will not be able to start VMs until this problem is fixed.
  19. EOF
  20. + fi
  21. elif [ ! -c /dev/vboxdrv ]; then
  22. cat << EOF
  23. WARNING: The character device /dev/vboxdrv does not exist. Try