Commit d2cda7eb authored by immarvin's avatar immarvin
Browse files

fix defect #4201 grub2 failure with mixed case mac address

parent 7b52961f
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment