fix defect #4201 grub2 failure with mixed case mac address

This commit is contained in:
immarvin 2014-07-28 02:42:57 -07:00
parent 7b52961f4b
commit d2cda7eb9e
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ sub setstate {
}
if ($nodemac =~ /:/) {
my $tmp = $nodemac;
my $tmp = lc($nodemac);
$tmp =~ s/(..):(..):(..):(..):(..):(..)/$1-$2-$3-$4-$5-$6/g;
my $pname = "grub.cfg-01-" . $tmp;
unlink($tftpdir."/boot/grub2/".$pname);

View File

@ -289,7 +289,7 @@ sub setstate {
}
}
if ($nodemac =~ /:/) {
my $tmp = $nodemac;
my $tmp =lc($nodemac);
$tmp =~ s/(..):(..):(..):(..):(..):(..)/$1-$2-$3-$4-$5-$6/g;
my $pname = "yaboot.conf-" . $tmp;
unlink($tftpdir."/".$pname);