File: plog

package info (click to toggle)
ppp 2.5.2-1%2B1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,484 kB
  • sloc: ansic: 40,715; sh: 5,356; perl: 458; makefile: 453
file content (7 lines) | stat: -rw-r--r-- 146 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
#!/bin/sh

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