mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Merge pull request #1509 from RaspAP/maint/os-detection
Parse /etc/os-release directly (compatibility)
This commit is contained in:
commit
ccbdf8dccf
@ -83,7 +83,7 @@ class Sysinfo
|
||||
|
||||
public function operatingSystem()
|
||||
{
|
||||
$os_desc = shell_exec("lsb_release -sd");
|
||||
$os_desc = shell_exec("cat /etc/os-release | awk -F= '/^PRETTY_NAME/ {print $2}' | sed 's/\"//g'");
|
||||
return $os_desc;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user