mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Host (Linux): devicetree path for OBP hosts (#591)
At least SPARC devices have their model name in this devicetree node and do not have a "model" node. Possibly also POWER Macs, do not have one to test though.
This commit is contained in:
@@ -28,6 +28,10 @@ static void getHostProductName(FFstrbuf* name)
|
||||
if(ffIsSmbiosValueSet(name))
|
||||
return;
|
||||
|
||||
ffReadFileBuffer("/sys/firmware/devicetree/base/banner-name", name);
|
||||
if(ffIsSmbiosValueSet(name))
|
||||
return;
|
||||
|
||||
//does a clear before the read
|
||||
ffReadFileBuffer("/tmp/sysinfo/model", name);
|
||||
if(ffIsSmbiosValueSet(name))
|
||||
|
||||
Reference in New Issue
Block a user