From aed09e0ff6779a545b3dbc8426ff116f9982fcce Mon Sep 17 00:00:00 2001 From: Micha LaQua Date: Tue, 5 Jun 2012 12:45:47 +0300 Subject: [PATCH] only do ppp stuff if /system/ppp exists --- prebuilt/init.d/97ppp | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/prebuilt/init.d/97ppp b/prebuilt/init.d/97ppp index 177eaeb..a7e5ffc 100755 --- a/prebuilt/init.d/97ppp +++ b/prebuilt/init.d/97ppp @@ -1,16 +1,20 @@ #!/system/bin/sh -chown 1001.1001 /dev/smd1 -touch /etc/ppp/active -touch /etc/ppp/pap-secrets -touch /etc/ppp/chap-secrets -touch /etc/ppp/options.smd -touch /etc/ppp/options.smd1 -touch /etc/ppp/ppp-gprs.pid -touch /etc/ppp/resolv.conf -chown 0.1001 /system/etc/ppp/* -chmod 775 /system/etc/ppp/* -chown 0.0 /system/bin/pppd -chmod 4755 /system/bin/pppd -#/system/bin/pppd /dev/smd1 defaultroute +if [ -f /system/ppp ] +then + echo "preparing to use ppp for data connections..." + chown 1001.1001 /dev/smd1 + touch /etc/ppp/active + touch /etc/ppp/pap-secrets + touch /etc/ppp/chap-secrets + touch /etc/ppp/options.smd + touch /etc/ppp/options.smd1 + touch /etc/ppp/ppp-gprs.pid + touch /etc/ppp/resolv.conf + chown 0.1001 /system/etc/ppp/* + chmod 775 /system/etc/ppp/* + chown 0.0 /system/bin/pppd + chmod 4755 /system/bin/pppd + #/system/bin/pppd /dev/smd1 defaultroute +fi