Changeset 89160 in vbox for trunk/src/VBox/Installer/linux
- Timestamp:
- May 19, 2021 12:46:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh
r89158 r89160 157 157 } 158 158 159 # Detect VirtualBox version info or report error on error.159 # Detect VirtualBox version info or report error. 160 160 VBOX_VERSION="$($VBOXMANAGE -v 2>/dev/null | cut -d r -f1)" 161 161 VBOX_REVISION="r$($VBOXMANAGE -v 2>/dev/null | cut -d r -f2)" 162 echo diagnostics: cut: $(which cut) $([ -x $(which cut) ] && echo 1) 163 echo diagnostics: VBOXMANAGE: $VBOXMANAGE $([ -x "$VBOXMANAGE" ] && echo 1) 164 echo diagnostics: VBOX_VERSION = .$VBOX_VERSION. 165 echo diagnostics: VBOX_REVISION = .$VBOX_REVISION. 166 if test -z "$VBOX_VERSION" -o "$VBOX_REVISION" = "r"; then 167 failure 'Cannot detect VirtualBox version' 168 fi 162 fail_msg "diagnostics: cut: $(which cut) $([ -x $(which cut) ] && echo 1)" 163 fail_msg "diagnostics: VBOXMANAGE: $VBOXMANAGE $([ -x $VBOXMANAGE ] && echo 1)" 164 fail_msg "diagnostics: VBOX_VERSION = .$VBOX_VERSION." 165 fail_msg "diagnostics: VBOX_REVISION = .$VBOX_REVISION." 166 [ -n "${VBOX_VERSION}" ] || failure 'Cannot detect VirtualBox version number' 167 [ "${VBOX_REVISION}" != "r" ] || failure 'Cannot detect VirtualBox revision number' 169 168 170 169 ## Output the vboxdrv part of our udev rule. This is redirected to the right file.
Note:
See TracChangeset
for help on using the changeset viewer.