vcpe/l2tp/pppd/scripts/plog

8 lines
146 B
Plaintext
Raw Normal View History

2022-08-09 03:06:08 +00:00
#!/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