]> git.ozlabs.org Git - ppp.git/blobdiff - scripts/plog
Added a man page for pon/poff/plog and plog to display the end of the ppp log.
[ppp.git] / scripts / plog
diff --git a/scripts/plog b/scripts/plog
new file mode 100644 (file)
index 0000000..84d2c73
--- /dev/null
@@ -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