summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-11-21 02:32:03 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-11-21 02:32:03 -0800
commitb44facda004ce5ea6d4485778522fb2d11080ab0 (patch)
treeb091466ba185864cdd02525f7d2228ec4f429977 /scripts
parent470af351a2225e8eac03b27e95ac193846e8824d (diff)
downloadvyatta-op-b44facda004ce5ea6d4485778522fb2d11080ab0.tar.gz
vyatta-op-b44facda004ce5ea6d4485778522fb2d11080ab0.zip
Bugfix 6101: Add logging for system image change and delete.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-boot-image.pl5
1 files changed, 5 insertions, 0 deletions
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;
}