Changeset 37754 in vbox for trunk/src/VBox/Installer/solaris
- Timestamp:
- Jul 4, 2011 10:09:42 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72624
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r37423 r37754 456 456 } 457 457 458 load_vboxflt() 459 { 460 if test -f "$DIR_CONF/vboxflt.conf"; then 461 add_driver "$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP" 462 load_module "drv/$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP" 463 else 464 # For custom pkgs that optionally ship this module, let's not fail but just warn 465 warnprint "$DESC_VBOXFLT installation requested but not shipped in this package." 466 fi 467 } 468 469 load_vboxbow() 470 { 471 if test -f "$DIR_CONF/vboxbow.conf"; then 472 add_driver "$MOD_VBOXBOW" "$DESC_VBOXBOW" "$FATALOP" 473 load_module "drv/$MOD_VBOXBOW" "$DESC_VBOXBOW" "$FATALOP" 474 else 475 # For custom pkgs that optionally ship this module, let's not fail but just warn 476 warnprint "$DESC_VBOXBOW installation requested but not shipped in this package." 477 fi 478 } 479 458 480 # install_drivers() 459 481 # !! failure is always fatal … … 497 519 fi 498 520 499 # If "/etc/vboxinst_vboxflt" exists or if host is Solaris 10 or S11 versions < snv_159 then load vboxflt driver. 500 if test -f /etc/vboxinst_vboxflt || test "$HOST_OS_MAJORVERSION" = "5.10" || test "$HOST_OS_MINORVERSION" -lt 159 || test ! -f "$DIR_CONF/vboxbow.conf"; then 501 # Load VBoxNetFlt 502 if test -f "$DIR_CONF/vboxflt.conf"; then 503 add_driver "$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP" 504 load_module "drv/$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP" 505 fi 521 # If both vboxinst_vboxbow and vboxinst_vboxflt exist, bail. 522 if test -f "$PKG_INSTALL_ROOT/etc/vboxinst_vboxflt" && test -f "$PKG_INSTALL_ROOT/etc/vboxinst_vboxbow"; then 523 errorprint "Force-install files '$PKG_INSTALL_ROOT/etc/vboxinst_vboxflt' and '$PKG_INSTALL_ROOT/etc/vboxinst_vboxbow' both exist." 524 errorprint "Cannot load $DESC_VBOXFLT and $DESC_VBOXBOW drivers at the same time." 525 return 1 526 fi 527 528 # If the force-install files exists, install blindly 529 if test -f "$PKG_INSTALL_ROOT/etc/vboxinst_vboxflt"; then 530 load_vboxflt 531 elif test -f "$PKG_INSTALL_ROOT/etc/vboxinst_vboxbow"; then 532 infoprint "here" 533 load_vboxbow 506 534 else 507 # Load VBoxNetBow 508 if test -f "$DIR_CONF/vboxbow.conf"; then 509 add_driver "$MOD_VBOXBOW" "$DESC_VBOXBOW" "$FATALOP" 510 load_module "drv/$MOD_VBOXBOW" "$DESC_VBOXBOW" "$FATALOP" 535 # If host is S10 or S11 (< snv_159) or vboxbow isn't shipped, then load vboxflt 536 if test "$HOST_OS_MAJORVERSION" = "5.10" || test "$HOST_OS_MINORVERSION" -lt 159 || test ! -f "$DIR_CONF/vboxbow.conf"; then 537 load_vboxflt 538 else 539 # For S11 snv_159+ load vboxbow 540 load_vboxbow 511 541 fi 512 542 fi
Note:
See TracChangeset
for help on using the changeset viewer.