Commit 53910b06 authored by J. Daniel Schmidt's avatar J. Daniel Schmidt
Browse files

add jessie support

parent 6bdb100a
......@@ -178,6 +178,12 @@ function get_distname() {
$distid = 'debian60';
$distbaseid = 'debian';
swriteln("Operating System: Debian 7.0 (Wheezy/Sid) or compatible\n");
} elseif(strstr(trim(file_get_contents('/etc/debian_version')), '8.0') || substr(trim(file_get_contents('/etc/debian_version')),0,2) == '8.' || trim(file_get_contents('/etc/debian_version')) == 'jessie/sid') {
$distname = 'Debian';
$distver = 'Jessie/Sid';
$distid = 'debian60';
$distbaseid = 'debian';
swriteln("Operating System: Debian 8.0 (Jessie/Sid) or compatible\n");
} else {
$distname = 'Debian';
$distver = 'Unknown';
......
......@@ -149,6 +149,11 @@ class monitor_tools {
$distver = 'Wheezy/Sid';
$distid = 'debian60';
$distbaseid = 'debian';
} elseif (strstr(trim(file_get_contents('/etc/debian_version')), '8.0') || substr(trim(file_get_contents('/etc/debian_version')),0,2) == '8.' || trim(file_get_contents('/etc/debian_version')) == 'jessie/sid') {
$distname = 'Debian';
$distver = 'Jessie/Sid';
$distid = 'debian60';
$distbaseid = 'debian';
} else {
$distname = 'Debian';
$distver = 'Unknown';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment