SunOS 5.6 == Solaris 2.6

This commit is contained in:
Doug MacEachern 2005-07-21 02:29:40 +00:00
parent 2246f7e747
commit b8a145e95f
1 changed files with 8 additions and 3 deletions

View File

@ -130,9 +130,14 @@ public class OperatingSystem {
else if (os.name.equals("SunOS")) { else if (os.name.equals("SunOS")) {
os.type = TYPE_SOLARIS; os.type = TYPE_SOLARIS;
os.vendor = "Sun Microsystems"; os.vendor = "Sun Microsystems";
if (os.version.equals("5.6")) {
os.vendorVersion = "2.6";
}
else {
int ix = os.version.indexOf("."); int ix = os.version.indexOf(".");
//5.8 == solaris 8, etc. //5.8 == solaris 8, etc.
os.vendorVersion = os.version.substring(ix+1); os.vendorVersion = os.version.substring(ix+1);
}
os.name = NAME_SOLARIS; os.name = NAME_SOLARIS;
} }
else if (os.name.equals("HP-UX")) { else if (os.name.equals("HP-UX")) {