summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 15:45:04 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 15:45:04 -0800
commitb2022147cb462c73a0cd22605b85d7efb59c59ab (patch)
tree4b4fcb5d9c45dcab4cdf7bad6e358e4a013eae63
parentd9ff6988147c07f76089f0a428c242217a68e152 (diff)
downloadvyatta-op-b2022147cb462c73a0cd22605b85d7efb59c59ab.tar.gz
vyatta-op-b2022147cb462c73a0cd22605b85d7efb59c59ab.zip
Use lesspipe to unzip log files
Bug 3921 Use semi-standard LESSOPEN hook to unzip files as needed.
-rw-r--r--templates/show/system/boot-messages/all/node.def3
1 files changed, 2 insertions, 1 deletions
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`