void-packages/srcpkgs/ppp/files/plog

8 lines
146 B
Text
Raw Normal View History

#!/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