[Feature][ZXW-265]merge P56U03 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I873f6df64e2605a77b8b8bfec35b21e7f33c5444
diff --git a/ap/app/pppd/ppp-2.5.0/scripts/plog b/ap/app/pppd/ppp-2.5.0/scripts/plog
new file mode 100755
index 0000000..7cb5334
--- /dev/null
+++ b/ap/app/pppd/ppp-2.5.0/scripts/plog
@@ -0,0 +1,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