Search ifcfg file by case-insensitive address.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15292 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2013-02-28 14:47:48 +00:00
parent 6f3e2fb2f0
commit 64cf838838

View File

@ -483,7 +483,7 @@ sub getIfcfgByNic {
foreach (@parms) {
# If the network file contains the NIC address
$out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo cat $_" | grep "$nic"`;
$out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo cat $_" | egrep -i "$nic"`;
if ($out) {
# Return network file path