From b5886882eefc8807682cbc7060886d6c4234d3e2 Mon Sep 17 00:00:00 2001 From: billz Date: Wed, 8 Jun 2022 17:21:50 +0000 Subject: [PATCH] Add os_desc + kernel version functions --- app/lib/system.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/lib/system.php b/app/lib/system.php index ee21ad84..22f7255a 100644 --- a/app/lib/system.php +++ b/app/lib/system.php @@ -75,5 +75,16 @@ class Sysinfo 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; + } }