- Timestamp:
- Oct 15, 2015 6:18:21 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh
r58253 r58256 32 32 MODPROBE=/sbin/modprobe 33 33 SCRIPTNAME=vboxdrv 34 # This is GNU-specific, sorry Solaris. It fails on directories ending in '\n'. 35 SCRIPT_DIR="$(dirname $(readlink -f -- "${0}"))" 34 36 35 37 if $MODPROBE -c | grep -q '^allow_unsupported_modules *0'; then … … 42 44 export USER=$USERNAME 43 45 44 if [ -n "$INSTALL_DIR" ]; then45 MODULE_SRC="$ INSTALL_DIR/src/vboxhost"46 el se46 if test -n "${INSTALL_DIR}" && test -x "${INSTALL_DIR}/VirtualBox"; then 47 MODULE_SRC="${INSTALL_DIR}/src/vboxhost" 48 elif test -x /usr/lib/virtualbox/VirtualBox; then 47 49 INSTALL_DIR=/usr/lib/virtualbox 48 50 MODULE_SRC="/usr/share/virtualbox/src/vboxhost" 51 elif test -x "${SCRIPT_DIR}/VirtualBox"; then 52 # Executing from the build directory 53 INSTALL_DIR="${SCRIPT_DIR}" 54 MODULE_SRC="${INSTALL_DIR}/src" 55 else 56 # Silently exit if the package was uninstalled but not purged. 57 # Applies to Debian packages only (but shouldn't hurt elsewhere) 58 exit 0 49 59 fi 50 VIRTUALBOX="$INSTALL_DIR/VirtualBox"51 VBOXMANAGE="$INSTALL_DIR/VBoxManage"52 BUILDINTMP="$ MODULE_SRC/build_in_tmp"60 VIRTUALBOX="${INSTALL_DIR}/VirtualBox" 61 VBOXMANAGE="${INSTALL_DIR}/VBoxManage" 62 BUILDINTMP="${MODULE_SRC}/build_in_tmp" 53 63 if test -u "${VIRTUALBOX}"; then 54 64 GROUP=root … … 58 68 DEVICE_MODE=0660 59 69 fi 60 61 # silently exit if the package was uninstalled but not purged,62 # applies to Debian packages only (but shouldn't hurt elsewhere)63 [ ! -f /etc/debian_release -o -x $VBOXMANAGE -a -x $BUILDINTMP ] || exit 064 70 65 71 [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
Note:
See TracChangeset
for help on using the changeset viewer.