diff --git a/index.php b/index.php index 2c59cd5..200451e 100644 --- a/index.php +++ b/index.php @@ -142,8 +142,14 @@ foreach($showlist as $section) { echo 'System Info:
', "\n"; $hn = trim(`uname -n`); $kn = trim(`uname -rmo`); - $oslist = explode(':', `lsb_release -d`); - $os = trim($oslist[1]); + $osinfo = file('/etc/os-release', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); + foreach ($osinfo as $line) { + list( $key, $value ) = explode('=', $line); + if ($key == 'PRETTY_NAME') { + $os = trim($value, '"'); + break; + } + } $cu = trim(`cat /proc/cpuinfo | grep Model`); if (0 == strlen($cu)) $cu = trim(`cat /proc/cpuinfo | grep "model name"`);