[Feature][YUKUAI_patch]add 18.02 code
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: I7f71153004f10fc0ea5adfa083866aaeeb1053ac
diff --git a/rootfs/sbin/pppd_up.sh b/rootfs/sbin/pppd_up.sh
new file mode 100755
index 0000000..db1ba09
--- /dev/null
+++ b/rootfs/sbin/pppd_up.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# $Id: lan.sh
+#
+path_sh=`nv get path_sh`
+. $path_sh/global.sh
+
+pppd_auth=`nv get pppd_auth`
+dev_name=$1
+echo "name is $1"
+aa=`echo $dev_name | sed 's/\//\\\\\//g'`
+echo "aa is $aa"
+echo "Info:start pppd!" >> $test_log
+if [ "$pppd_auth" == "auth" ]; then
+ cp $path_ro/options.auth $path_conf/options
+ cp $path_ro/pap-secrets $path_conf/pap-secrets
+ cp $path_ro/chap-secrets $path_conf/chap-secrets
+ sed -i -e "s/#dev_name#/$aa/g" $path_conf/options
+ sed -i -e "s/#dev_name#/$aa/g" $path_conf/options
+ killall -9 pppd
+ pppd &
+elif [ "$pppd_auth" == "noauth" ]; then
+ cp $path_ro/options.noauth $path_conf/options
+ sed -i -e "s/#dev_name#/$aa/g" $path_conf/options
+ sed -i -e "s/#dev_name#/$aa/g" $path_conf/options
+ killall -9 pppd
+ pppd &
+fi