From b2022147cb462c73a0cd22605b85d7efb59c59ab Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 11 Feb 2009 15:45:04 -0800 Subject: Use lesspipe to unzip log files Bug 3921 Use semi-standard LESSOPEN hook to unzip files as needed. --- templates/show/system/boot-messages/all/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/show/system/boot-messages') diff --git a/templates/show/system/boot-messages/all/node.def b/templates/show/system/boot-messages/all/node.def index e414987..15f42d1 100644 --- a/templates/show/system/boot-messages/all/node.def +++ b/templates/show/system/boot-messages/all/node.def @@ -1,4 +1,5 @@ help: Show all kernel boot messages -run: less $_vyatta_less_options \ +run: LESSOPEN="/usr/bin/lesspipe %s" LESSCLOSE="/usr/bin/lesspipe %s %s" \ + less $_vyatta_less_options \ --prompt=".boot-messages?m, file %i of %m., page %dt of %D" \ -- `printf "%s\n" /var/log/dmesg* | sort -nr` -- cgit v1.2.3