summaryrefslogtreecommitdiffstats
path: root/etc/periodic/security/900.tcpwrap
diff options
context:
space:
mode:
Diffstat (limited to 'etc/periodic/security/900.tcpwrap')
-rwxr-xr-xetc/periodic/security/900.tcpwrap8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/periodic/security/900.tcpwrap b/etc/periodic/security/900.tcpwrap
index cad9fae..55f7709 100755
--- a/etc/periodic/security/900.tcpwrap
+++ b/etc/periodic/security/900.tcpwrap
@@ -45,7 +45,13 @@ yesterday=`date -v-1d "+%b %e "`
catmsgs() {
find ${LOG} -name 'messages.*' -mtime -2 |
sort -t. -r -n -k 2,2 |
- xargs zcat -f
+ while read f
+ do
+ case $f in
+ *.gz) zcat -f $f;;
+ *.bz2) bzcat -f $f;;
+ esac
+ done
[ -f ${LOG}/messages ] && cat $LOG/messages
}
OpenPOWER on IntegriCloud