diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2008-03-20 13:43:35 -0700 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2008-03-20 13:43:35 -0700 |
commit | 6695763f68fbf3acfb6c69739deca28217eaf8ef (patch) | |
tree | 395b48e2e2dd9268b9e480ae883f900a1b1b5ffc /scripts/vyatta-show-dmesg-all | |
parent | fbdbc9d257bd6682f9b70323e90469f188ea0dd0 (diff) | |
download | vyatta-op-6695763f68fbf3acfb6c69739deca28217eaf8ef.tar.gz vyatta-op-6695763f68fbf3acfb6c69739deca28217eaf8ef.zip |
fix bug 3017
don't pipe through VYATTA_PAGER if run_cmd itself is a pager or tail
Diffstat (limited to 'scripts/vyatta-show-dmesg-all')
-rwxr-xr-x | scripts/vyatta-show-dmesg-all | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/scripts/vyatta-show-dmesg-all b/scripts/vyatta-show-dmesg-all deleted file mode 100755 index d511ea0..0000000 --- a/scripts/vyatta-show-dmesg-all +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -shopt -s extglob nullglob - -declare -a zipped_files=($( printf "%s\n" /var/log/dmesg*.gz | sort -r )) -declare -a plain_files=($( printf "%s\n" /var/log/dmesg!(*.gz) | sort -r )) - -[ ${#zipped_files[@]} -gt 0 ] && gunzip --stdout ${zipped_files[@]} -[ ${#plain_files[@]} -gt 0 ] && cat ${plain_files[@]} |