Commit faec6219 authored by Till Brehm's avatar Till Brehm

Add code to recognize CentOS 7.3

parent 42781ade
......@@ -304,6 +304,27 @@ function get_distname() {
$distconfid = 'centos72';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 7.2\n");
} elseif(stristr($content, 'CentOS Linux release 7.3')) {
$distname = 'CentOS';
$distver = 'Unknown';
$distid = 'centos72';
$distconfid = 'centos72';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 7.3\n");
} elseif(stristr($content, 'CentOS Linux release 7.4')) {
$distname = 'CentOS';
$distver = 'Unknown';
$distid = 'centos72';
$distconfid = 'centos72';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 7.4\n");
} elseif(stristr($content, 'CentOS Linux release 7.5')) {
$distname = 'CentOS';
$distver = 'Unknown';
$distid = 'centos72';
$distconfid = 'centos72';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 7.5\n");
} elseif(stristr($content, 'CentOS Linux release 7')) {
$distname = 'CentOS';
$distver = 'Unknown';
......
......@@ -279,6 +279,27 @@ class monitor_tools {
$distid = 'centos70';
$distconfid = 'centos72';
$distbaseid = 'fedora';
} elseif(stristr($content, 'CentOS Linux release 7.3')) {
$distname = 'CentOS';
$distver = 'Unknown';
$distid = 'centos72';
$distconfid = 'centos72';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 7.3\n");
} elseif(stristr($content, 'CentOS Linux release 7.4')) {
$distname = 'CentOS';
$distver = 'Unknown';
$distid = 'centos72';
$distconfid = 'centos72';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 7.4\n");
} elseif(stristr($content, 'CentOS Linux release 7.5')) {
$distname = 'CentOS';
$distver = 'Unknown';
$distid = 'centos72';
$distconfid = 'centos72';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 7.5\n");
} elseif(stristr($content, 'CentOS Linux release 7')) {
$distname = 'CentOS';
$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