From 20a718b2b3501c5a14e1038f5e850280d91ae2a3 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Thu, 15 Dec 2011 02:49:00 +0000 Subject: [PATCH] leo: fix ppp issues; no longer require 97ppp file, all in the init.htcleo.rc --- leo.mk | 1 - prebuilt/init.htcleo.rc | 13 +++++++++---- prebuilt/ppp/97ppp | 17 ----------------- 3 files changed, 9 insertions(+), 22 deletions(-) delete mode 100755 prebuilt/ppp/97ppp diff --git a/leo.mk b/leo.mk index 75a0592..79bf500 100755 --- a/leo.mk +++ b/leo.mk @@ -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 diff --git a/prebuilt/init.htcleo.rc b/prebuilt/init.htcleo.rc index 38f3555..a24a162 100644 --- a/prebuilt/init.htcleo.rc +++ b/prebuilt/init.htcleo.rc @@ -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 diff --git a/prebuilt/ppp/97ppp b/prebuilt/ppp/97ppp deleted file mode 100755 index 0b8f5e3..0000000 --- a/prebuilt/ppp/97ppp +++ /dev/null @@ -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