mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
Add os_desc + kernel version functions
This commit is contained in:
parent
86bb8458b8
commit
b5886882ee
1 changed files with 11 additions and 0 deletions
|
@ -75,5 +75,16 @@ class Sysinfo
|
||||||
return $status;
|
return $status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function operatingSystem()
|
||||||
|
{
|
||||||
|
$os_desc = shell_exec("lsb_release -sd");
|
||||||
|
return $os_desc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function kernelVersion()
|
||||||
|
{
|
||||||
|
$kernel = shell_exec("uname -r");
|
||||||
|
return $kernel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue