diff options
| author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2011-01-24 15:34:23 +1000 | 
|---|---|---|
| committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2011-01-24 15:34:23 +1000 | 
| commit | 7afbca72c1dfaf273eb366b2b372855ac1505440 (patch) | |
| tree | 30e5474906ec132b250edae9801c408cb3f8c913 /scripts/rename-image.pl | |
| parent | 3c9d639f65240d1745b6186a16ce0f6eb918e65c (diff) | |
| parent | 73dfd3113cfb1226366023ef61cae7c870b6159f (diff) | |
| download | vyatta-op-mendocino.tar.gz vyatta-op-mendocino.zip | |
Merge branch 'mendocino' of suva.vyatta.com:/git/vyatta-op into mendocinomendocino
Diffstat (limited to 'scripts/rename-image.pl')
| -rw-r--r-- | scripts/rename-image.pl | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/scripts/rename-image.pl b/scripts/rename-image.pl index e2e9745..837a3ad 100644 --- a/scripts/rename-image.pl +++ b/scripts/rename-image.pl @@ -94,6 +94,7 @@ my $line;  while ($line = <GRUBFH>) {      $line =~ s/\/boot\/$old_name/\/boot\/$new_name/g;      $line =~ s/Vyatta $old_name/Vyatta $new_name/; +    $line =~ s/Vyatta image $old_name/Vyatta image $new_name/;      $line =~ s/Lost password change $old_name/Lost password change $new_name/;      printf($tmpfh $line);  } @@ -104,5 +105,7 @@ close(GRUBFH);  system("mv $image_path/$old_name $image_path/$new_name");  system("cp $tmpfilename $image_path/grub/grub.cfg"); +system("logger -p local3.warning -t 'SystemImage' 'System image $old_name has been renamed $new_name'"); +  printf("Done.\n"); | 
