1 --- VirtualBox-4.3.8/src/VBox/Installer/linux/VBox.sh 2014-03-01 18:25:47.973662413 +0200
2 +++ VirtualBox-4.3.10/src/VBox/Installer/linux/VBox.sh 2014-04-23 14:44:03.392690596 +0300
4 PATH="/usr/bin:/bin:/usr/sbin:/sbin"
5 CONFIG="/etc/vbox/vbox.cfg"
8 + local BINFILE=${0##*/} message
10 + if [ "$DESKTOP" = "kde" ]; then
12 + PATH=$(kde4-config --path exe) kdialog --sorry "$message"
13 + elif [ -n "$DISPLAY" ] && [ -x /usr/bin/gxmessage ]; then
14 + gxmessage --center --buttons GTK_STOCK_OK -wrap -geometry 400x150 -name $BINFILE -file -
15 + elif [ -n "$DISPLAY" ] && [ -x /usr/bin/zenity ]; then
17 + zenity --error --icon-name=virtualbox --text "$message"
23 test -r "${CONFIG}" &&
25 test -z "${INSTALL_DIR}" &&
26 - if test -f /usr/lib/virtualbox/VirtualBox &&
27 - test -x /usr/lib/virtualbox/VirtualBox; then
28 - INSTALL_DIR=/usr/lib/virtualbox
29 + if test -f @INSTALL_DIR@/VBoxSVC &&
30 + test -x @INSTALL_DIR@/VBoxSVC; then
31 + INSTALL_DIR=@INSTALL_DIR@
33 - echo "Could not find VirtualBox installation. Please reinstall."
34 + echo "Could not find VirtualBox installation. Please reinstall." | show_message
39 if [ "$1" = "shutdown" ]; then
41 elif ! lsmod|grep -q vboxdrv; then
44 WARNING: The vboxdrv kernel module is not loaded. Either there is no module
45 available for the current kernel (`uname -r`) or it failed to
46 load. Please recompile the kernel module and install it by
48 You will not be able to start VMs until this problem is fixed.
50 elif [ ! -c /dev/vboxdrv ]; then
53 WARNING: The character device /dev/vboxdrv does not exist. Try
55 sudo /etc/init.d/vboxdrv restart
59 if [ -f /etc/vbox/module_not_compiled ]; then
62 WARNING: The compilation of the vboxdrv.ko kernel module failed during the
63 installation for some reason. Starting a VM will not be possible.
64 Please consult the User Manual for build instructions.