Greetings, you may use this script:
hamilton@saygon:../out/target/product/XXX/system/etc$ cat init.gprs-pppd
#!/system/bin/sh
# An unforunate wrapper script
# so that the exit code of pppd may be retrieved
# this is a workaround for issue #651747
#trap "/system/bin/sleep 1;exit 0" TERM
PPPD_PID=
/system/bin/setprop "net.gprs.ppp-exit" ""
/system/bin/log -t pppd "Starting pppd"
PPPD_ARGS=`/system/bin/getprop net.gprs.ppp-args`
#/system/xbin/pppd $*
# pppd was put into /system/bin instead of /system/xbin after SDK1.6
/system/bin/pppd /dev/YOURDEVICE debug defaultroute $PPPD_ARGS noauth
crtscts nodetach usepeerdns ipcp-no-addresses noipdefault novj noccp
lcp-echo-failure 4 lcp-echo-interval 60 modem nocrtscts linkname ppp0
PPPD_EXIT=$?
PPPD_PID=$!
/system/bin/log -t pppd "pppd exited with $PPPD_EXIT"
/system/bin/setprop "net.gprs.ppp-exit" "$PPPD_EXIT"
#EOF
Usually RIL calls this one by property_set("ctl.start", SERVICE_PPPD_GPRS);
[]'s
Hamilton Vera
On Tue, May 31, 2011 at 11:08 AM, Adrien <[email protected]> wrote:
> Hi,
>
> I need to use ppp in Froyo. I need some pointers on how to do this.
>
> What i know for now:
>
> === init.rc ===
>
> Need to add
> setprop ro.radio.use-ppp yes
>
> service pppd_gprs /etc/ppp/init.gprs-pppd
> user root
> group radio cache inet misc
> disabled
>
> Thing is i don't have init.gprs-pppd. I searched a bit and found
> several scripts but i don't know which one i should use.
>
> Plus when i try to launch ppp using /system/bin/pppd, i have this nice
> error :
> FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:360
>
> and when i use /dev/ppp as the device :
>
> E/pppd ( 1269): no device specified and stdin is not a tty
> E/pppd ( 1271): tcgetattr: Not a typewriter (line 909)
>
> Any hints is appreciated
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>
--
Hamilton Vera
int Administrator (char Network[],char ComputationalSystems[])
http://hvera.wordpress.com
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting