leo: fix ppp issues; no longer require 97ppp file, all in the init.htcleo.rc

This commit is contained in:
Arif Ali 2011-12-15 02:49:00 +00:00
parent 461c608cf1
commit 20a718b2b3
3 changed files with 9 additions and 22 deletions

1
leo.mk
View File

@ -97,7 +97,6 @@ PRODUCT_COPY_FILES += \
# PPP files
PRODUCT_COPY_FILES += \
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

View File

@ -16,8 +16,8 @@ on init
# Backwards Compat - XXX: Going away in G*
symlink /mnt/sdcard /sdcard
on fs
mount yaffs2 mtd@system /system remount
on post-fs
mount yaffs2 mtd@system /system rw remount
mount rootfs rootfs / rw remount
mkdir /sd-ext 0771 system system
@ -126,7 +126,7 @@ on boot
chown root radio /proc/cmdline
chown bluetooth bluetooth /dev/ttyHS0
chown system system /dev/smd0
chown system system /dev/smd1
chown radio radio /dev/smd1
chown system system /dev/smd27
chmod 0666 /dev/rfkill
@ -215,8 +215,13 @@ on boot
# PPP stuff
chown radio radio /dev/smd1
chown root radio /system/etc/ppp
chown root radio /system/etc/ppp/ip-up
chown root radio /system/etc/ppp/ip-up-vpn
chown root radio /system/etc/ppp/ip-down
chown root radio /system/etc/ppp/options
chown root root /system/bin/pppd
chmod 755 /system/etc/ppp/*
chmod 775 /system/etc/ppp
chmod 775 /system/etc/ppp/*
chmod 4755 /system/bin/pppd
# Enabling PPP enabled, doing PPP specific stuff

View File

@ -1,17 +0,0 @@
#!/system/bin/sh
touch /system/ppp
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;
echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio
echo 8192 > /proc/sys/vm/min_free_kbytes