version 1.8, 2005/07/18 15:10:11
|
version 1.10, 2006/09/28 22:58:03
|
Line 49 if (-e '/etc/redhat-release') {
|
Line 49 if (-e '/etc/redhat-release') {
|
} else { |
} else { |
$dist = 'fedora'.int($version); |
$dist = 'fedora'.int($version); |
} |
} |
} elsif ($versionstring =~ /Red Hat Enterprise Linux ES release ([\d\.]+) /) { |
} elsif ($versionstring =~ /Red Hat Enterprise Linux [AE]S release ([\d\.]+) /) { |
$dist = 'rhes'.$1; |
$dist = 'rhes'.$1; |
} else { |
} else { |
warn('Unable to interpret /etc/redhat-release '. |
warn('Unable to interpret /etc/redhat-release '. |
Line 68 if (-e '/etc/redhat-release') {
|
Line 68 if (-e '/etc/redhat-release') {
|
my $versionstring=<IN>; |
my $versionstring=<IN>; |
chomp($versionstring); |
chomp($versionstring); |
close(IN); |
close(IN); |
if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /) { |
if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /i) { |
$dist='sles'.$1; |
$dist='sles'.$1; |
} elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /) { |
} elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /i) { |
$dist = 'suse'.$1; |
$dist = 'suse'.$1; |
} else { |
} else { |
warn('Unable to interpret /etc/SuSE-release '. |
warn('Unable to interpret /etc/SuSE-release '. |