diff options
author | Russell Coker <russell@coker.com.au> | 2002-11-24 23:36:25 +0000 |
---|---|---|
committer | Russell Coker <russell@coker.com.au> | 2002-11-24 23:36:25 +0000 |
commit | 74825fc32b8e3bc6ec7075ad53ac3263f1c85f1e (patch) | |
tree | 331069400a8eb518c6d8ee3d1ba35495f4e01cdb /scripts/plog | |
parent | f234b25aa73603e3c840b8071c819e6202d5fd14 (diff) | |
download | ppp-74825fc32b8e3bc6ec7075ad53ac3263f1c85f1e.tar.gz |
Added a man page for pon/poff/plog and plog to display the end of the ppp log.
Diffstat (limited to 'scripts/plog')
-rw-r--r-- | scripts/plog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/plog b/scripts/plog new file mode 100644 index 0000000..84d2c73 --- /dev/null +++ b/scripts/plog @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -s /var/log/ppp.log ]; then + exec tail "$@" /var/log/ppp.log +else + exec tail "$@" /var/log/syslog | grep ' \(pppd\|chat\)\[' +fi |