From: Vladimir Sokolovsky Date: Wed, 22 May 2013 16:50:37 +0000 (+0300) Subject: install.pl: Added RHEL6.4 support X-Git-Tag: vofed-3.5~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9f7df73405ef9c6b7cdf309ae04878208174452d;p=~tnikolova%2Fofed_scripts%2F.git install.pl: Added RHEL6.4 support Signed-off-by: Vladimir Sokolovsky --- diff --git a/install.pl b/install.pl index ea2ae77..b42b85d 100755 --- a/install.pl +++ b/install.pl @@ -244,6 +244,9 @@ if ($dist_rpm =~ /openSUSE-release-11.2/) { } elsif ($dist_rpm =~ /redhat-release-.*-6.3|sl-release-6.3|centos-release-6-3/) { $DISTRO = "RHEL6.3"; $rpm_distro = "rhel6u3"; +} elsif ($dist_rpm =~ /redhat-release-.*-6.4|sl-release-6.4|centos-release-6-4/) { + $DISTRO = "RHEL6.4"; + $rpm_distro = "rhel6u4"; } elsif ($dist_rpm =~ /oraclelinux-release-6.*-1.0.2/) { $DISTRO = "OEL6.1"; $rpm_distro = "oel6u1"; @@ -2936,7 +2939,7 @@ sub build_kernel_rpm $cmd .= " --define '_target_cpu i686'"; } - if ($DISTRO eq "RHEL6.3") { + if ($DISTRO =~ /RHEL6.[34]/) { $cmd .= " --define '__find_provides %{nil}'"; } $cmd .= " --nodeps"; @@ -3718,7 +3721,7 @@ sub get_net_config $ifcfg{$interface}{'BROADCAST'} =~ s/Bcast://g; $ifcfg{$interface}{'NETMASK'} = (split (' ', $line))[3]; $ifcfg{$interface}{'NETMASK'} =~ s/Mask://g; - if ($DISTRO eq "RHEL6.3") { + if ($DISTRO =~ /RHEL6.[34]/) { $ifcfg{$interface}{'NM_CONTROLLED'} = "yes"; $ifcfg{$interface}{'TYPE'} = "InfiniBand"; } @@ -3826,7 +3829,7 @@ sub config_interface print "NETMASK=$nm\n"; print "NETWORK=$nw\n"; print "BROADCAST=$bc\n"; - if ($DISTRO eq "RHEL6.3") { + if ($DISTRO =~ /RHEL6.[34]/) { print "NM_CONTROLLED=yes\n"; print "TYPE=InfiniBand\n"; } @@ -3981,7 +3984,7 @@ sub config_interface print IF "NETMASK=$nm\n"; print IF "NETWORK=$nw\n"; print IF "BROADCAST=$bc\n"; - if ($DISTRO eq "RHEL6.3") { + if ($DISTRO =~ /RHEL6.[34]/) { print IF "NM_CONTROLLED=yes\n"; print IF "TYPE=InfiniBand\n"; }