VirtualBox

Changeset 39001 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Oct 17, 2011 11:53:39 AM (13 years ago)
Author:
vboxsync
Message:

Solaris/Installer: S11 vboxnetX vanity name fix.

File:
1 edited

Legend:

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

    r39000 r39001  
    848848            # plumb and configure vboxnet0 for non-remote installs
    849849            if test "$REMOTEINST" -eq 0; then
     850                # S11 175a renames vboxnet0 as 'netX', undo this and rename it back
     851                if test "$HOST_OS_MAJORVERSION" = "5.11" && test "$HOST_OS_MINORVERSION" -gt 174; then
     852                    vanityname=`dladm show-phys -po link,device | grep vboxnet0 | cut -f1 -d':'`
     853                    if test $? -eq 0 && test ! -z "vanityname"; then
     854                        dladm rename-link "$vanityname" vboxnet0
     855                        if test $? -ne 0; then
     856                            errorprint "Failed to rename vanity interface ($vanityname) to vboxnet0"
     857                        fi
     858                    fi
     859                fi
     860
    850861                $BIN_IFCONFIG vboxnet0 plumb
    851862                $BIN_IFCONFIG vboxnet0 up
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