diff options
author | Bill Yi <byi@google.com> | 2014-04-29 16:07:40 -0700 |
---|---|---|
committer | Bill Yi <byi@google.com> | 2014-04-29 16:07:40 -0700 |
commit | 1333e012ee65fef59f5f43f33744230574dfc2a2 (patch) | |
tree | 90f203e72ae48b9dc341d1af382d1f9670cf288f /rootdir | |
parent | a4fe7ddc4a6c91a6f0a1c3657a8ec4858390423f (diff) | |
parent | 4102af05a86aae36d2560fd8b3f740a52399342c (diff) | |
download | system_core-1333e012ee65fef59f5f43f33744230574dfc2a2.zip system_core-1333e012ee65fef59f5f43f33744230574dfc2a2.tar.gz system_core-1333e012ee65fef59f5f43f33744230574dfc2a2.tar.bz2 |
Merge commit '4102af05a86aae36d2560fd8b3f740a52399342c' into HEAD
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 0ef097c..81d173a 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -144,6 +144,11 @@ loglevel 3 # checker programs. mkdir /dev/fscklogs 0770 root system +# pstore/ramoops previous console log + mount pstore pstore /sys/fs/pstore + chown system log /sys/fs/pstore/console-ramoops + chmod 0440 /sys/fs/pstore/console-ramoops + on post-fs # once everything is setup, no need to modify / mount rootfs rootfs / ro remount @@ -381,6 +386,9 @@ on boot setprop net.tcp.buffersize.gprs 4092,8760,48000,4096,8760,48000 setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144 +# Define default initial receive window size in segments. + setprop net.tcp.default_init_rwnd 60 + class_start core class_start main @@ -413,9 +421,15 @@ on property:vold.decrypt=trigger_shutdown_framework on property:sys.powerctl=* powerctl ${sys.powerctl} -# system server cannot write to /proc/sys files, so proxy it through init +# system server cannot write to /proc/sys files, +# and chown/chmod does not work for /proc/sys/ entries. +# So proxy writes through init. on property:sys.sysctl.extra_free_kbytes=* write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes} +# "tcp_default_init_rwnd" Is too long! +on property:sys.sysctl.tcp_def_init_rwnd=* + write /proc/sys/net/ipv4/tcp_default_init_rwnd ${sys.sysctl.tcp_def_init_rwnd} + ## Daemon processes to be run by init. ## |