diff options
Diffstat (limited to 'libs/system.php')
| -rw-r--r-- | libs/system.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/system.php b/libs/system.php index f569d30..015b1dd 100644 --- a/libs/system.php +++ b/libs/system.php @@ -1,5 +1,5 @@ <?php -require 'Utils/Misc.class.php'; +require '../autoload.php'; // Hostname $hostname = php_uname('n'); @@ -9,7 +9,7 @@ if (!($os = shell_exec('/usr/bin/lsb_release -ds | cut -d= -f2 | tr -d \'"\''))) { if(!($os = shell_exec('cat /etc/system-release | cut -d= -f2 | tr -d \'"\''))) { - if (!($os = shell_exec('find /etc/*-release -type f -exec cat {} \; | grep NAME | tail -n 1 | cut -d= -f2 | tr -d \'"\''))) + if (!($os = shell_exec('find /etc/*-release -type f -exec cat {} \; | grep PRETTY_NAME | tail -n 1 | cut -d= -f2 | tr -d \'"\''))) { $os = 'N.A'; } |
