From 3ee4ea90f5cd70e0c92e0de2d3feabcecb68a700 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 30 Jan 2024 12:54:32 +0000 Subject: [PATCH] Parse /etc/os-release versus lsb_release (compatibility) --- src/RaspAP/System/Sysinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RaspAP/System/Sysinfo.php b/src/RaspAP/System/Sysinfo.php index 003ed991..3cb493c9 100755 --- a/src/RaspAP/System/Sysinfo.php +++ b/src/RaspAP/System/Sysinfo.php @@ -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; }