diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-11-21 05:11:31 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-11-21 05:11:31 -0800 |
commit | 2c41bb3f894e44c2e5ecdbb2f65029534d4ed240 (patch) | |
tree | f035e55ddb63ced24abb93772e912cfd1ece49db /scripts | |
parent | be2abfc96e7a7c6340b40786acd84348da0c4c9a (diff) | |
download | vyatta-op-2c41bb3f894e44c2e5ecdbb2f65029534d4ed240.tar.gz vyatta-op-2c41bb3f894e44c2e5ecdbb2f65029534d4ed240.zip |
Bugfix 6101: Add syslog record when a system image is re-named.
Diffstat (limited to 'scripts')
-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"); |