summaryrefslogtreecommitdiff
path: root/scripts/plog
blob: 7cb53346413d7b52e8ecc6757be0e990bb4beecd (plain)
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