VirtualBox

Changeset 26759 in vbox for trunk


Ignore:
Timestamp:
Feb 24, 2010 6:41:59 PM (15 years ago)
Author:
vboxsync
Message:

Solaris/Installer: vboxconfig.sh reload drivers option and altkerndir options for local builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/vboxconfig.sh

    r26498 r26759  
    3030
    3131DIR_VBOXBASE=/opt/VirtualBox
     32DIR_CONF="/platform/i86pc/kernel/drv"
    3233DIR_MOD_32="/platform/i86pc/kernel/drv"
    3334DIR_MOD_64=$DIR_MOD_32/amd64
     
    367368    if test $? -eq 0 && test -h "/dev/vboxdrv"; then
    368369
    369         if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then
     370        if test -f "$DIR_CONF/vboxnet.conf"; then
    370371            add_driver "$MOD_VBOXNET" "$DESC_VBOXNET" "$FATALOP"
    371372            load_module "drv/$MOD_VBOXNET" "$DESC_VBOXNET" "$FATALOP"
    372373        fi
    373374
    374         if test -f /platform/i86pc/kernel/drv/vboxflt.conf; then
     375        if test -f "$DIR_CONF/vboxflt.conf"; then
    375376            add_driver "$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP"
    376377            load_module "drv/$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP"
    377378        fi
    378379
    379         if test -f /platform/i86pc/kernel/drv/vboxusbmon.conf && test "$HOST_OS_MAJORVERSION" != "5.10"; then
     380        if test -f "$DIR_CONF/vboxusbmon.conf" && test "$HOST_OS_MAJORVERSION" != "5.10"; then
    380381            # For VirtualBox 3.1 the new USB code requires Nevada > 123
    381382            if test "$HOST_OS_MINORVERSION" -gt 123; then
     
    399400                # USB device to attach to now (it's done at runtime) it will fail to attach so
    400401                # redirect attaching failure output to /dev/null
    401                 if test -f /platform/i86pc/kernel/drv/vboxusb.conf; then
     402                if test -f "$DIR_CONF/vboxusb.conf"; then
    402403                    add_driver "$MOD_VBOXUSB" "$DESC_VBOXUSB" "$FATALOP" "$NULLOP"
    403404                    load_module "drv/$MOD_VBOXUSB" "$DESC_VBOXUSB" "$FATALOP"
     
    572573
    573574    if test "$?" -eq 0; then
    574         if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then
     575        if test -f "$DIR_CONF/vboxnet.conf"; then
    575576            # nwam/dhcpagent fix
    576577            nwamfile=/etc/nwam/llp
     
    700701do
    701702    case "$1" in
    702         --postinstall | --preremove | --installdrivers | --removedrivers)
     703        --postinstall | --preremove | --installdrivers | --removedrivers | --setupdrivers)
    703704            drvop="$1"
    704705            ;;
     
    711712        --ips)
    712713            ISIPS="$IPSOP"
     714            ;;
     715        --altkerndir)
     716            # Use alternate kernel driver config folder (dev only)
     717            DIR_CONF="/usr/kernel/drv"
    713718            ;;
    714719        *)
     
    734739    remove_drivers "$fatal"
    735740    ;;
     741--setupdrivers)
     742    remove_drivers "$fatal"
     743    install_drivers
     744    ;;
    736745*)
    737746    errorprint "Invalid operation $drvop"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette