2 # An unforunate wrapper script
3 # so that the exit code of pppd may be retrieved
6 # this is a workaround for issue #651747
7 #trap "/system/bin/sleep 1;exit 0" TERM
9 PPPD_TTY
=$
(/system
/bin
/getprop ril.pppd_tty
)
10 if test -z "$PPPD_TTY" ; then
11 /system
/bin
/setprop ril.pppd_tty
/dev
/ttyUSB0
15 /system
/bin
/setprop
"net.gprs.ppp-exit" ""
17 /system
/bin
/log
-t pppd
"Starting pppd"
19 /system
/bin
/pppd
$PPPD_TTY 460800 $
* call gprs debug kdebug
8 dump
24 /system
/bin
/log
-t pppd
"pppd exited with $PPPD_EXIT"
26 /system
/bin
/setprop
"net.gprs.ppp-exit" "$PPPD_EXIT"