diff --git a/leo.mk b/leo.mk index a247bc2..f2633fc 100755 --- a/leo.mk +++ b/leo.mk @@ -94,6 +94,7 @@ PRODUCT_COPY_FILES += \ # PPP files PRODUCT_COPY_FILES += \ + device/htc/leo/prebuilt/ppp/97ppp:system/etc/init.d \ device/htc/leo/prebuilt/ppp/ip-up:system/etc/ppp/ip-up \ device/htc/leo/prebuilt/ppp/ip-down:system/etc/ppp/ip-down \ device/htc/leo/prebuilt/ppp/options:system/etc/ppp/options diff --git a/prebuilt/init.htcleo.rc b/prebuilt/init.htcleo.rc index 13f973a..462cf9d 100644 --- a/prebuilt/init.htcleo.rc +++ b/prebuilt/init.htcleo.rc @@ -213,7 +213,7 @@ on boot # PPP stuff chown radio radio /dev/smd1 chown root radio /system/etc/ppp - chown root root /system/bin/pppd; + chown root root /system/bin/pppd chmod 755 /system/etc/ppp/* chmod 4755 /system/bin/pppd diff --git a/prebuilt/ppp/97ppp b/prebuilt/ppp/97ppp new file mode 100755 index 0000000..d7fb085 --- /dev/null +++ b/prebuilt/ppp/97ppp @@ -0,0 +1,29 @@ +#!/system/bin/sh + +chown 1001.1001 /dev/smd1; +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; +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 "PPP enabled, doing PPP specific stuff" + + # Create link for resolv.conf (generated by pppd) + ln -s /etc/ppp/resolv.conf /etc/resolv.conf + + # Tweak kernel low memory handling + echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio + echo 8192 > /proc/sys/vm/min_free_kbytes + +else + echo "PPP disbled, leaving things as they are" +fi + diff --git a/system.prop b/system.prop index 04e8456..54e989f 100755 --- a/system.prop +++ b/system.prop @@ -3,7 +3,8 @@ # # RIL specific configuration -rild.libpath=/system/lib/libhtc_ril.so +rild.libpath=/system/lib/libhtc_ril_wrapper.so +rild.libargs=-d /dev/smd0 nand_init ro.ril.ecc.HTC-ELL=92,93,94 ro.ril.ecc.HTC-WWE=999 ro.ril.enable.a52.HTC-ITA=1