Changeset 43427 in vbox
- Timestamp:
- Sep 25, 2012 11:56:06 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80926
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r43420 r43427 239 239 # or "pkg://solaris/system/[email protected],5.11-5.12.0.0.0.4.1:20120908T030246Z" 240 240 # or "pkg://solaris/system/[email protected],5.11-0.175.0.0.0.1.0:20111012T032837Z" 241 # or "pkg://solaris/system/[email protected]:20121012T032837Z" 241 242 STR_KERN_MAJOR=`echo "$PKGFMRI" | sed 's/^.*\@//;s/\,.*//'` 242 243 if test ! -z "$STR_KERN_MAJOR"; then … … 250 251 HOST_OS_MAJORVERSION="11" 251 252 else 252 errorprint "Failed to parse the Solaris kernel major version." 253 exit 1 253 # This could be the PSARC/2012/240 naming scheme for S12. 254 # The format is "pkg://solaris/system/[email protected]:20121012T032837Z" 255 # The "5.12" following the "@" is the nominal version which we ignore for now as it is 256 # not set by most pkg(5) tools... 257 # STR_KERN_MAJOR is now of the format "5.12-5.12.0.0.0.9.1.3.0:20121012T032837Z" with '9' representing 258 # the build number. 259 BRANCH_VERSION=STR_KERN_MAJOR 260 HOST_OS_MAJORVERSION=`echo "$BRANCH_VERSION" | cut -f2 -d'-' | cut -f1,2 -d'.'` 261 if test "HOST_OS_MAJORVERSION" = "5.12"; then 262 HOST_OS_MINORVERSION=`echo "$BRANCH_VERSION" | cut -f2 -d'-' | cut -f6 -d'.'` 263 return 0 264 else 265 errorprint "Failed to parse the Solaris kernel major version." 266 exit 1 267 fi 254 268 fi 255 269 270 # This applies only to S11 and S12 where the transitional "@5.12," component version is 271 # still part of the pkg(5) package FMRI. The regular S12 will follow the PSARC/2012/240 naming scheme above. 256 272 STR_KERN_MINOR=`echo "$PKGFMRI" | sed 's/^.*\@//;s/\:.*//;s/.*,//'` 257 273 if test ! -z "$STR_KERN_MINOR"; then
Note:
See TracChangeset
for help on using the changeset viewer.