-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:
parent
b5563debf9
commit
d8ae450ad2
@ -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/;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user