From b44facda004ce5ea6d4485778522fb2d11080ab0 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Sun, 21 Nov 2010 02:32:03 -0800 Subject: Bugfix 6101: Add logging for system image change and delete. --- scripts/vyatta-boot-image.pl | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- cgit v1.2.3