From 6695763f68fbf3acfb6c69739deca28217eaf8ef Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Thu, 20 Mar 2008 13:43:35 -0700 Subject: fix bug 3017 don't pipe through VYATTA_PAGER if run_cmd itself is a pager or tail --- scripts/vyatta-show-dmesg | 4 ---- scripts/vyatta-show-dmesg-all | 9 --------- scripts/vyatta-show-log | 4 ---- scripts/vyatta-show-log-all | 9 --------- scripts/vyatta-show-log-file | 13 ------------- 5 files changed, 39 deletions(-) delete mode 100755 scripts/vyatta-show-dmesg delete mode 100755 scripts/vyatta-show-dmesg-all delete mode 100755 scripts/vyatta-show-log delete mode 100755 scripts/vyatta-show-log-all delete mode 100755 scripts/vyatta-show-log-file (limited to 'scripts') diff --git a/scripts/vyatta-show-dmesg b/scripts/vyatta-show-dmesg deleted file mode 100755 index 8a53a94..0000000 --- a/scripts/vyatta-show-dmesg +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -cat /var/log/dmes? /dev/null - 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[@]} diff --git a/scripts/vyatta-show-log b/scripts/vyatta-show-log deleted file mode 100755 index 10e46e5..0000000 --- a/scripts/vyatta-show-log +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -cat /var/log/messages - diff --git a/scripts/vyatta-show-log-all b/scripts/vyatta-show-log-all deleted file mode 100755 index 126b7fc..0000000 --- a/scripts/vyatta-show-log-all +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -shopt -s extglob nullglob - -declare -a zipped_files=($( printf "%s\n" /var/log/messages*.gz | sort -r )) -declare -a plain_files=($( printf "%s\n" /var/log/messages!(*.gz) | sort -r )) - -[ ${#zipped_files[@]} -gt 0 ] && gunzip --stdout ${zipped_files[@]} -[ ${#plain_files[@]} -gt 0 ] && cat ${plain_files[@]} diff --git a/scripts/vyatta-show-log-file b/scripts/vyatta-show-log-file deleted file mode 100755 index caf8ac9..0000000 --- a/scripts/vyatta-show-log-file +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -if [[ "$1" == */* ]]; then - echo "Invalid log file name" - exit 1 -fi - -if [ -f "/var/log/user/$1" ]; then - cat /var/log/user/$1 -else - echo "No such log file" -fi - -- cgit v1.2.3