[PATCH 11/16] plog: count only relevant lines from syslog

Closes paulusmack/ppp#42

Gbp-Pq: Name 0011-plog-count-only-relevant-lines-from-syslog.patch
This commit is contained in:
Dmitry Deshevoy 2016-03-31 23:39:32 +04:00 committed by openKylinBot
parent bdd71cc453
commit 4d67140764
1 changed files with 1 additions and 1 deletions

View File

@ -3,5 +3,5 @@
if [ -s /var/log/ppp.log ]; then
exec tail "$@" /var/log/ppp.log
else
exec tail "$@" /var/log/syslog | grep ' \(pppd\|chat\)\['
exec grep ' \(pppd\|chat\)\[' /var/log/syslog | tail "$@"
fi