version 1.10, 2006/09/28 22:58:03
|
version 1.13, 2007/05/31 13:36:53
|
Line 42 if (-e '/etc/redhat-release') {
|
Line 42 if (-e '/etc/redhat-release') {
|
} elsif ($version=~/^9/) { |
} elsif ($version=~/^9/) { |
$dist='redhat9'; |
$dist='redhat9'; |
} |
} |
} elsif ($versionstring =~ /Fedora Core release ([\d\.]+) /) { |
} elsif ($versionstring =~ /Fedora( Core)? release ([\d\.]+) /) { |
my $version=$1; |
my $version=$2; |
if ($version - int($version) > .9) { |
if ($version - int($version) > .9) { |
$dist = 'fedora'.(int($version)+1); |
$dist = 'fedora'.(int($version)+1); |
} else { |
} else { |
Line 51 if (-e '/etc/redhat-release') {
|
Line 51 if (-e '/etc/redhat-release') {
|
} |
} |
} elsif ($versionstring =~ /Red Hat Enterprise Linux [AE]S release ([\d\.]+) /) { |
} elsif ($versionstring =~ /Red Hat Enterprise Linux [AE]S release ([\d\.]+) /) { |
$dist = 'rhes'.$1; |
$dist = 'rhes'.$1; |
|
} elsif ($versionstring =~ /Red Hat Enterprise Linux Server release (\d+)/) { |
|
$dist = 'rhes'.$1; |
} else { |
} else { |
warn('Unable to interpret /etc/redhat-release '. |
warn('Unable to interpret /etc/redhat-release '. |
'to determine system type'); |
'to determine system type'); |
Line 72 if (-e '/etc/redhat-release') {
|
Line 74 if (-e '/etc/redhat-release') {
|
$dist='sles'.$1; |
$dist='sles'.$1; |
} elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /i) { |
} elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /i) { |
$dist = 'suse'.$1; |
$dist = 'suse'.$1; |
|
} elsif ($versionstring =~ /^openSUSE ([\d\.]+) /i) { |
|
$dist = 'suse'.$1; |
} else { |
} else { |
warn('Unable to interpret /etc/SuSE-release '. |
warn('Unable to interpret /etc/SuSE-release '. |
'to determine system type'); |
'to determine system type'); |