private OSInformation GetLinuxInformation() { string path = "/etc/lsb-release"; OSInformation ret = null; if (File.Exists(path)) { string[] lines = File.ReadAllLines(path); string name = lines[0].Split('=')[1]; string version = lines[1].Split('=')[1]; ret = new OSInformation(version, name); } else { ret = new OSInformation(null, null); } return ret; }
private OSInformation GetLinuxInformation() { string path = "/etc/lsb-release"; OSInformation ret = null; if (File.Exists(path)) { string[] lines = File.ReadAllLines(path); string name = lines[0].Split('=')[1]; string version = lines[1].Split('=')[1]; ret = new OSInformation(version, name); } else { ret = new OSInformation(null, null); } return(ret); }