leo: fix data issues

This commit is contained in:
Arif Ali 2011-12-05 21:58:19 +00:00
parent 60bfa7ed79
commit e14246d3be
4 changed files with 33 additions and 2 deletions

1
leo.mk
View File

@ -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

View File

@ -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

29
prebuilt/ppp/97ppp Executable file
View File

@ -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

View File

@ -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