mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Parse /etc/os-release versus lsb_release (compatibility)
This commit is contained in:
parent
224f4ca784
commit
3ee4ea90f5
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