summaryrefslogtreecommitdiff
path: root/scripts/plog
diff options
context:
space:
mode:
authorRussell Coker <russell@coker.com.au>2002-11-24 23:36:25 +0000
committerRussell Coker <russell@coker.com.au>2002-11-24 23:36:25 +0000
commit74825fc32b8e3bc6ec7075ad53ac3263f1c85f1e (patch)
tree331069400a8eb518c6d8ee3d1ba35495f4e01cdb /scripts/plog
parentf234b25aa73603e3c840b8071c819e6202d5fd14 (diff)
downloadppp-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/plog7
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