-Make yaboot-by-mac hack a little less easily broken (still imperfect)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-05-06 20:39:22 +00:00
parent b5563debf9
commit d8ae450ad2

View File

@ -162,6 +162,8 @@ sub setstate {
my $pname = sprintf("%02x%02x%02x%02x",@ipa);
#special case for sles 11
my $mac = lc($machash{$node}->[0]->{mac});
$mac =~ s/!.*//;
$mac =~ s/|.*//;
if (! (grep /\:/, $mac) ) {
$mac =~ s/(..)(..)(..)(..)(..)(..)/$1:$2:$3:$4:$5:$6/;
}