2011-11-24 18:49:51 +00:00
|
|
|
#!/system/bin/sh
|
|
|
|
|
2012-04-30 18:17:42 +00:00
|
|
|
#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
|
2011-11-24 18:49:51 +00:00
|
|
|
echo "nameserver $DNS1" > /etc/ppp/resolv.conf
|
|
|
|
echo "nameserver $DNS2" >> /etc/ppp/resolv.conf
|
|
|
|
|
2012-04-30 18:17:42 +00:00
|
|
|
# Tweak kernel low memory handling
|
|
|
|
echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio
|
|
|
|
echo 8192 > /proc/sys/vm/min_free_kbytes
|
|
|
|
|