Changeset 24423 in vbox
- Timestamp:
- Nov 6, 2009 7:10:49 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54475
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r24389 r24423 24 24 # SRv4 postinstall procedures which carry special meaning. Just use exit 1 for failure. 25 25 26 HOST_OS_VERSION=`uname -r` 26 # S10 or OpenSoalris 27 HOST_OS_MAJORVERSION=`uname -r` 28 # Which OpenSolaris version (snv_xxx)? 29 HOST_OS_MINORVERSION=`uname -v | cut -f2 -d'_'` 27 30 28 31 DIR_VBOXBASE=/opt/VirtualBox … … 376 379 fi 377 380 378 if test -f /platform/i86pc/kernel/drv/vboxusbmon.conf && test "$HOST_OS_VERSION" != "5.10"; then 379 add_driver "$MOD_VBOXUSBMON" "$DESC_VBOXUSBMON" "$FATALOP" 380 load_module "drv/$MOD_VBOXUSBMON" "$DESC_VBOXUSBMON" "$FATALOP" 381 382 # Add vboxusbmon to devlink.tab 383 sed -e '/name=vboxusbmon/d' /etc/devlink.tab > /etc/devlink.vbox 384 echo "type=ddi_pseudo;name=vboxusbmon \D" >> /etc/devlink.vbox 385 mv -f /etc/devlink.vbox /etc/devlink.tab 386 387 # Create the device link 388 /usr/sbin/devfsadm -i "$MOD_VBOXUSBMON" 389 if test $? -ne 0; then 390 errorprint "Failed to create device link for $MOD_VBOXUSBMON." 391 exit 1 392 fi 393 394 # Add vboxusb if present 395 # This driver is special, we need it in the boot-archive but since there is no 396 # USB device to attach to now (it's done at runtime) it will fail to attach so 397 # redirect attaching failure output to /dev/null 398 if test -f /platform/i86pc/kernel/drv/vboxusb.conf; then 399 add_driver "$MOD_VBOXUSB" "$DESC_VBOXUSB" "$FATALOP" "$NULLOP" 381 if test -f /platform/i86pc/kernel/drv/vboxusbmon.conf && test "$HOST_OS_MAJORVERSION" != "5.10"; then 382 # For VirtualBox 3.1 the new USB code requires Nevada >= 124 383 if test "$HOST_OS_MINORVERSION" -gt 123; then 384 add_driver "$MOD_VBOXUSBMON" "$DESC_VBOXUSBMON" "$FATALOP" 385 load_module "drv/$MOD_VBOXUSBMON" "$DESC_VBOXUSBMON" "$FATALOP" 386 387 # Add vboxusbmon to devlink.tab 388 sed -e '/name=vboxusbmon/d' /etc/devlink.tab > /etc/devlink.vbox 389 echo "type=ddi_pseudo;name=vboxusbmon \D" >> /etc/devlink.vbox 390 mv -f /etc/devlink.vbox /etc/devlink.tab 391 392 # Create the device link 393 /usr/sbin/devfsadm -i "$MOD_VBOXUSBMON" 394 if test $? -ne 0; then 395 errorprint "Failed to create device link for $MOD_VBOXUSBMON." 396 exit 1 397 fi 398 399 # Add vboxusb if present 400 # This driver is special, we need it in the boot-archive but since there is no 401 # USB device to attach to now (it's done at runtime) it will fail to attach so 402 # redirect attaching failure output to /dev/null 403 if test -f /platform/i86pc/kernel/drv/vboxusb.conf; then 404 add_driver "$MOD_VBOXUSB" "$DESC_VBOXUSB" "$FATALOP" "$NULLOP" 405 fi 406 else 407 warnprint "Solaris Nevada 124 or higher required for USB support. Skipped installing USB support." 400 408 fi 401 409 fi
Note:
See TracChangeset
for help on using the changeset viewer.