android_device_htc_leo/prebuilt/ppp/ip-up

25 lines
539 B
Plaintext
Raw Normal View History

#!/system/bin/sh
#author: cedesmith
PATH=/sbin:/system/sbin:/system/bin:/system/xbin
setprop net.ppp0.dns1 $DNS1
setprop net.ppp0.dns2 $DNS2
#added by tytung
/bin/touch /etc/ppp/ppp0.pid
/bin/chmod 777 /etc/ppp/ppp0.pid
# Create link for resolv.conf (generated by pppd)
ln -s /etc/ppp/resolv.conf /etc/resolv.conf
echo "nameserver $DNS1" > /etc/ppp/resolv.conf
echo "nameserver $DNS2" >> /etc/ppp/resolv.conf
# Tweak kernel low memory handling
echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio
echo 8192 > /proc/sys/vm/min_free_kbytes