From 50e43080188a4aa26713f9ddcc0ba34250fbf1c1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 13 Apr 2011 15:10:26 -0700 Subject: [PATCH] Check for /dev/smd7 for ppp --- init | 8 ++++++++ init.cfg/init.froyo.rc | 2 +- init.cfg/init.gingerbread.rc | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/init b/init index a7668fb..842b6a2 100755 --- a/init +++ b/init @@ -376,6 +376,14 @@ then mount --bind /lib/froyo/libhardware_legacy.so /system/lib/libhardware_legacy.so fi +# fix PPP data device name +if [ -f /dev/smd7 ]; then + PPPDEV=/dev/smd7 +else + PPPDEV=/dev/smd1 +fi +sed -i s,PPPDEV,$PPPDEV, /etc/init.rc + if [ "$WIFI_TI" = "1" ];then if [ "`grep -c ^wifi /tmp/build.prop`" != "2" ]; then echo "wifi.interface = tiwlan0" >> /tmp/build.prop diff --git a/init.cfg/init.froyo.rc b/init.cfg/init.froyo.rc index 9d392c2..98b7aa0 100644 --- a/init.cfg/init.froyo.rc +++ b/init.cfg/init.froyo.rc @@ -465,7 +465,7 @@ service dhcpcd /system/bin/dhcpcd -ABKL disabled oneshot -service pppd_gprs /system/bin/pppd /dev/smd1 defaultroute local usepeerdns \ +service pppd_gprs /system/bin/pppd PPPDEV defaultroute local usepeerdns \ noipdefault unit 0 nodetach linkname gprs \ lcp-restart 1 lcp-max-configure 3 ipcp-restart 1 ipcp-max-configure 3 disabled diff --git a/init.cfg/init.gingerbread.rc b/init.cfg/init.gingerbread.rc index a6e1995..cf04185 100644 --- a/init.cfg/init.gingerbread.rc +++ b/init.cfg/init.gingerbread.rc @@ -466,7 +466,7 @@ service dhcpcd /system/bin/dhcpcd -ABKL disabled oneshot -service pppd_gprs /system/bin/pppd /dev/smd1 defaultroute local usepeerdns \ +service pppd_gprs /system/bin/pppd PPPDEV defaultroute local usepeerdns \ noipdefault unit 0 nodetach linkname gprs \ lcp-restart 1 lcp-max-configure 3 ipcp-restart 1 ipcp-max-configure 3 disabled -- 2.1.4