restore bsd messages
This commit is contained in:
parent
2079d75828
commit
55d82df384
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,7 @@ namespace MediaBrowser.Model.System
|
||||||
{
|
{
|
||||||
Windows,
|
Windows,
|
||||||
Linux,
|
Linux,
|
||||||
OSX
|
OSX,
|
||||||
|
BSD
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user