1 --- VirtualBox-5.1.14/src/VBox/Installer/linux/VBox.sh.orig 2017-02-03 07:40:16.928172726 +0100
2 +++ VirtualBox-5.1.14/src/VBox/Installer/linux/VBox.sh 2017-02-03 07:42:41.247214271 +0100
4 # works on Solaris and OS X.
5 TARGET=`readlink -e -- "${0}"` || exit 1
6 MY_DIR="${TARGET%/[!/]*}"
12 # test -n "${path}" || pwd
17 + local BINFILE=${0##*/} message
19 + if [ "$DESKTOP" = "kde" ]; then
21 + PATH=$(kde4-config --path exe) kdialog --sorry "$message"
22 + elif [ -n "$DISPLAY" ] && [ -x /usr/bin/gxmessage ]; then
23 + gxmessage --center --buttons GTK_STOCK_OK -wrap -geometry 400x150 -name $BINFILE -file -
24 + elif [ -n "$DISPLAY" ] && [ -x /usr/bin/zenity ]; then
26 + zenity --error --icon-name=virtualbox --text "$message"
33 -if test -f /usr/lib/virtualbox/VirtualBox &&
34 - test -x /usr/lib/virtualbox/VirtualBox; then
35 +if test -f "/usr/lib/virtualbox/${APP}" &&
36 + test -x "/usr/lib/virtualbox/${APP}"; then
37 INSTALL_DIR=/usr/lib/virtualbox
38 -elif test -f "${MY_DIR}/VirtualBox" && test -x "${MY_DIR}/VirtualBox"; then
39 +elif test -f "${MY_DIR}/${APP}" && test -x "${MY_DIR}/${APP}"; then
40 INSTALL_DIR="${MY_DIR}"
42 - echo "Could not find VirtualBox installation. Please reinstall."
43 + echo "Could not find VirtualBox installation. Please reinstall." | show_message
48 if [ "$1" = "shutdown" ]; then
50 elif ! lsmod|grep -q vboxdrv; then
53 WARNING: The vboxdrv kernel module is not loaded. Either there is no module
54 available for the current kernel (`uname -r`) or it failed to
55 load. Please recompile the kernel module and install it by
57 You will not be able to start VMs until this problem is fixed.
59 elif [ ! -c /dev/vboxdrv ]; then
62 WARNING: The character device /dev/vboxdrv does not exist. Try
68 if [ -f /etc/vbox/module_not_compiled ]; then
71 WARNING: The compilation of the vboxdrv.ko kernel module failed during the
72 installation for some reason. Starting a VM will not be possible.
73 Please consult the User Manual for build instructions.
80 VirtualBox|virtualbox)
81 exec "$INSTALL_DIR/VirtualBox" "$@"