summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rename-image.pl3
-rwxr-xr-xscripts/vyatta-boot-image.pl5
2 files changed, 8 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");
diff --git a/scripts/vyatta-boot-image.pl b/scripts/vyatta-boot-image.pl
index 9431711..367f4b4 100755
--- a/scripts/vyatta-boot-image.pl
+++ b/scripts/vyatta-boot-image.pl
@@ -296,6 +296,9 @@ Default boot image has been set to "$new_ver".
You need to reboot the system to start the new default image.
EOF
+
+ system("logger -p local3.warning -t 'SystemImage' 'Default boot image has been changed from $def_ver to $new_ver'");
+
exit 0;
}
@@ -463,6 +466,8 @@ sub doDelete {
select_by_name($orig_def_ver, $def_ter);
}
+ system("logger -p local3.warning -t 'SystemImage' 'System Image $del_ver has been deleted'");
+
exit 0;
}