From cb8c86a5eb7b70feb29a2ef7503aae497d40bf57 Mon Sep 17 00:00:00 2001 From: wyrie <wyrie@ispconfig3> Date: Wed, 02 Dec 2009 06:57:59 -0500 Subject: [PATCH] Implemented: FS#973 - Gentoo support for installer. Fixed FS#974 - Directory mode for firewall configuration --- install/lib/install.lib.php | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index d27ff11..889821c 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -159,7 +159,19 @@ $distbaseid = 'fedora'; swriteln("Operating System: Redhat or compatible, unknown version.\n"); } - + } + + //** Gentoo + elseif(file_exists("/etc/gentoo-release")) { + + $content = file_get_contents('/etc/gentoo-release'); + + preg_match_all('/([0-9]{1,2})/', $content, $version); + $distname = 'Gentoo'; + $distver = $version[0][0].$version[0][1]; + $distid = 'gentoo'; + $distbaseid = 'gentoo'; + swriteln("Operating System: Gentoo $distver or compatible\n"); } else { die('unrecognized linux distribution'); -- Gitblit v1.9.1