some vendor stuff

This commit is contained in:
Doug MacEachern 2005-03-08 01:10:10 +00:00
parent 2a72e67e14
commit a961ce1ea1
1 changed files with 25 additions and 0 deletions

View File

@ -37,6 +37,31 @@ public class OperatingSystem {
if (os.name.equals("Linux")) {
os.getLinuxInfo();
}
else if (os.name.indexOf("Windows") > -1) {
os.vendor = "Microsoft";
}
else if (os.name.equals("SunOS")) {
os.vendor = "Sun Microsystems";
}
else if (os.name.equals("HP-UX")) {
os.vendor = "Hewlett-Packard";
}
else if (os.name.equals("OSF1")) {
//HP acquired DEC
os.vendor = "Hewlett-Packard";
}
else if (os.name.equals("AIX")) {
os.vendor = "IBM";
}
else if (os.name.equals("Mac OS X")) {
os.vendor = "Apple";
}
else if (os.name.equals("FreeBSD")) {
os.vendor = "FreeBSD";
}
else {
os.vendor = "Unknown";
}
instance = os;
}