leo: ppp is better than rmnet in ICS, so hardcode it in, and fix add 97ppp into leo.mk
This commit is contained in:
parent
187fb04949
commit
e2c83e5560
2
leo.mk
2
leo.mk
@ -91,7 +91,7 @@ PRODUCT_COPY_FILES += \
|
||||
|
||||
# PPP files
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/htc/leo/prebuilt/ppp/97ppp:system/etc/init.d \
|
||||
device/htc/leo/prebuilt/ppp/97ppp:system/etc/init.d/97ppp \
|
||||
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
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
touch /system/ppp
|
||||
chown 1001.1001 /dev/smd1;
|
||||
touch /etc/ppp/pap-secrets;
|
||||
touch /etc/ppp/chap-secrets;
|
||||
@ -12,18 +13,5 @@ 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
|
||||
|
||||
echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio
|
||||
echo 8192 > /proc/sys/vm/min_free_kbytes
|
||||
|
Loading…
Reference in New Issue
Block a user