version 1.6, 2004/10/26 19:45:57
|
version 1.8, 2005/07/18 15:10:11
|
Line 43 if (-e '/etc/redhat-release') {
|
Line 43 if (-e '/etc/redhat-release') {
|
$dist='redhat9'; |
$dist='redhat9'; |
} |
} |
} elsif ($versionstring =~ /Fedora Core release ([\d\.]+) /) { |
} elsif ($versionstring =~ /Fedora Core release ([\d\.]+) /) { |
$dist = 'fedora'.$1; |
my $version=$1; |
|
if ($version - int($version) > .9) { |
|
$dist = 'fedora'.(int($version)+1); |
|
} else { |
|
$dist = 'fedora'.int($version); |
|
} |
|
} elsif ($versionstring =~ /Red Hat Enterprise Linux ES 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'); |