summaryrefslogtreecommitdiff
path: root/libs/system.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/system.php')
-rw-r--r--libs/system.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/libs/system.php b/libs/system.php
index 3e4ba1a..b814432 100644
--- a/libs/system.php
+++ b/libs/system.php
@@ -7,7 +7,22 @@ $hostname = php_uname('n');
// OS
if (!($os = shell_exec('/usr/bin/lsb_release -ds')))
{
- $os = 'N.A';
+ if (!($os = shell_exec('cat /etc/fedora-release')))
+ {
+ if (!($os = shell_exec('cat /etc/redhat-release')))
+ {
+ if (!($os = shell_exec('cat /etc/mandriva-release')))
+ {
+ if (!($os = shell_exec('cat /etc/SuSE-release')))
+ {
+ if (!($os = shell_exec('cat /etc/centos-release')))
+ {
+ $os = 'N.A';
+ }
+ }
+ }
+ }
+ }
}
// Kernel