restore bsd messages

This commit is contained in:
Luke Pulverenti 2017-02-07 03:23:45 -05:00
parent 2079d75828
commit 55d82df384
3 changed files with 16 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace Emby.Common.Implementations.EnvironmentInfo
public MediaBrowser.Model.System.Architecture? CustomArchitecture { get; set; } public MediaBrowser.Model.System.Architecture? CustomArchitecture { get; set; }
public MediaBrowser.Model.System.OperatingSystem? CustomOperatingSystem { get; set; } public MediaBrowser.Model.System.OperatingSystem? CustomOperatingSystem { get; set; }
public MediaBrowser.Model.System.OperatingSystem OperatingSystem public virtual MediaBrowser.Model.System.OperatingSystem OperatingSystem
{ {
get get
{ {

View File

@ -17,6 +17,7 @@ namespace MediaBrowser.Model.System
{ {
Windows, Windows,
Linux, Linux,
OSX OSX,
BSD
} }
} }

View File

@ -319,5 +319,18 @@ namespace MediaBrowser.Server.Mono
{ {
return Syscall.getuid().ToString(CultureInfo.InvariantCulture); return Syscall.getuid().ToString(CultureInfo.InvariantCulture);
} }
public override Model.System.OperatingSystem OperatingSystem
{
get
{
if (IsBsd)
{
return Model.System.OperatingSystem.BSD;
}
return base.OperatingSystem;
}
}
} }
} }