From 0b1ae6fdafb5bcab41118a23300855336f803ba6 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 5 Jul 2011 11:01:45 -0500 Subject: Bugfix 7278: Add a 'show log image tail' command --- templates/show/log/image/node.tag/tail/node.def | 2 ++ templates/show/log/image/node.tag/tail/node.tag/node.def | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 templates/show/log/image/node.tag/tail/node.def create mode 100644 templates/show/log/image/node.tag/tail/node.tag/node.def diff --git a/templates/show/log/image/node.tag/tail/node.def b/templates/show/log/image/node.tag/tail/node.def new file mode 100644 index 0000000..c7f0190 --- /dev/null +++ b/templates/show/log/image/node.tag/tail/node.def @@ -0,0 +1,2 @@ +help: Show last lines of messages file +run: tail /live/image/boot/$4/live-rw/var/log/messages diff --git a/templates/show/log/image/node.tag/tail/node.tag/node.def b/templates/show/log/image/node.tag/tail/node.tag/node.def new file mode 100644 index 0000000..f0af559 --- /dev/null +++ b/templates/show/log/image/node.tag/tail/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show last changes to messages +allowed: echo -n '' +run: tail -n "$6" /live/image/boot/$4/live-rw/var/log/messages | ${VYATTA_PAGER:-cat} -- cgit v1.2.3