mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Merge pull request #1509 from RaspAP/maint/os-detection
Parse /etc/os-release directly (compatibility)
This commit is contained in:
commit
ccbdf8dccf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue