- Timestamp:
- May 19, 2021 1:25:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh
r89164 r89166 157 157 } 158 158 159 # Detect VirtualBox version info or report error on error. 160 VBOX_VERSION=$($VBOXMANAGE -v 2>/dev/null | cut -d 'r' -f1) 161 VBOX_REVISION="r$($VBOXMANAGE -v 2>/dev/null | cut -d 'r' -f2)" 162 if test -z "$VBOX_VERSION" -o "$VBOX_REVISION" = "r"; then 163 failure 'Cannot detect VirtualBox version' 164 fi 159 # Detect VirtualBox version info or report error. 160 VBOX_VERSION="`$VBOXMANAGE -v 2>/dev/null | cut -d r -f1`" 161 [ -n "$VBOX_VERSION" ] || failure 'Cannot detect VirtualBox version number' 162 VBOX_REVISION="r`$VBOXMANAGE -v 2>/dev/null | cut -d r -f2`" 163 [ "$VBOX_REVISION" != "r" ] || failure 'Cannot detect VirtualBox revision number' 165 164 166 165 ## 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.