Changeset 72752 in vbox for trunk/src/VBox/Installer/solaris
- Timestamp:
- Jun 29, 2018 8:20:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r72295 r72752 237 237 } 238 238 239 # get_s11_4_ or_newer_sysinfo()239 # get_s11_4_sysinfo() 240 240 # cannot fail 241 get_s11_4_ or_newer_sysinfo()241 get_s11_4_sysinfo() 242 242 { 243 243 # See check in plumb_net for why this is > 174. The alternative is we declare 11.4+ as S12 with … … 246 246 HOST_OS_MAJORVERSION="11" 247 247 HOST_OS_MINORVERSION="175" 248 } 249 250 # get_s11_5_or_newer_sysinfo() 251 # cannot fail 252 get_s11_5_or_newer_sysinfo() 253 { 254 # See check in plumb_net for why this is 176. 255 HOST_OS_MAJORVERSION="11" 256 HOST_OS_MINORVERSION="176" 248 257 } 249 258 … … 259 268 return 0 260 269 ;; 261 # Quick escape workaround for Solaris 11.4+, changes the pkg FMRI (yet again). See BugDB #26494983. 262 11.4.* | 11.5.*) 263 get_s11_4_or_newer_sysinfo 264 return 0 270 # Quick escape workaround for Solaris 11.4, changes the pkg FMRI (yet again). See BugDB #26494983. 271 11.4.*) 272 get_s11_4_sysinfo 273 return 0 274 # Quick escape workaround for Solaris 11.5. See BugDB #26494983. 275 11.5.*) 276 get_s11_5_or_newer_sysinfo 277 return 0 265 278 esac 266 279 … … 994 1007 plumb_net() 995 1008 { 996 # S11 175a renames vboxnet0 as 'netX', undo this and rename it back (S 12+ or S11 b175+)997 if test "$HOST_OS_MAJORVERSION" -g t 11 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -gt 174); then1009 # S11 175a renames vboxnet0 as 'netX', undo this and rename it back (Solaris 12, Solaris 11.4 or newer) 1010 if test "$HOST_OS_MAJORVERSION" -ge 12 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -ge 175); then 998 1011 vanityname=`dladm show-phys -po link,device | grep vboxnet0 | cut -f1 -d':'` 999 1012 if test "$?" -eq 0 && test ! -z "$vanityname" && test "x$vanityname" != "xvboxnet0"; then … … 1005 1018 fi 1006 1019 1007 # use ipadm for Solaris 12 andnewer1008 if test "$HOST_OS_MAJORVERSION" -ge 12 ; then1020 # use ipadm for Solaris 12, Solaris 11.5 or newer 1021 if test "$HOST_OS_MAJORVERSION" -ge 12 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -ge 176); then 1009 1022 $BIN_IPADM create-ip vboxnet0 1010 1023 if test "$?" -eq 0; then … … 1086 1099 { 1087 1100 inst=0 1088 # use ipadm for Solaris 12 andnewer1089 if test "$HOST_OS_MAJORVERSION" -ge 12 ; then1101 # use ipadm for Solaris 12, Solaris 11.5 or newer 1102 if test "$HOST_OS_MAJORVERSION" -ge 12 || (test "$HOST_OS_MAJORVERSION" -eq 11 && test "$HOST_OS_MINORVERSION" -ge 176); then 1090 1103 while test "$inst" -ne $MOD_VBOXNET_INST; do 1091 1104 vboxnetup=`$BIN_IPADM show-addr -p -o addrobj vboxnet$inst >/dev/null 2>&1`
Note:
See TracChangeset
for help on using the changeset viewer.