fix defect #4201 grub2 failure with mixed case mac address
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user