From 09a616e1ea0cc1927b7ed94d646a91be9a7b435f Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 23 Jan 2008 23:32:19 +0000 Subject: * Added ReadEtcIssue to Util * If you have Debian running, you should get a platform line that says, 'Found Debian!' when starting up your sim. * If someone running Debian will confirm this does occur, that would be most helpful. --- OpenSim/Region/Environment/Scenes/Scene.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 52d0822..c1c6fe9 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -282,14 +282,12 @@ namespace OpenSim.Region.Environment.Scenes m_statsReporter.OnSendStatsResult += SendSimStatsPackets; MainLog.Instance.Verbose("PLATFORM", System.Environment.OSVersion.Platform.ToString()); MainLog.Instance.Verbose("PLATFORM", System.Environment.OSVersion.ToString()); - try - { - MainLog.Instance.Verbose("PLATRORM", "TERM:" + System.Environment.GetEnvironmentVariable("TERM")); - } - catch (System.Exception) + string etcreturn = Util.ReadEtcIssue(); + if (etcreturn.Contains("Debian")) { - MainLog.Instance.Verbose("PLATFORM", "No TERM Environment Variable"); + MainLog.Instance.Verbose("PLATFORM", "Found Debian!"); } + } #endregion -- cgit v1.1