Make indentation sane in init.rc
Change-Id: Ic632fbe1423eeef7ec958877d74db7b87fc385c6
This commit is contained in:
parent
a4fb975e3d
commit
6dfdc7cd0c
|
@ -26,29 +26,28 @@ on early-init
|
|||
|
||||
start ueventd
|
||||
|
||||
# create mountpoints
|
||||
# create mountpoints
|
||||
mkdir /mnt 0775 root system
|
||||
|
||||
on init
|
||||
sysclktz 0
|
||||
|
||||
sysclktz 0
|
||||
loglevel 3
|
||||
|
||||
loglevel 3
|
||||
|
||||
# Backward compatibility
|
||||
# Backward compatibility
|
||||
symlink /system/etc /etc
|
||||
symlink /sys/kernel/debug /d
|
||||
|
||||
# Right now vendor lives on the same filesystem as system,
|
||||
# but someday that may change.
|
||||
# Right now vendor lives on the same filesystem as system,
|
||||
# but someday that may change.
|
||||
symlink /system/vendor /vendor
|
||||
|
||||
# Create cgroup mount point for cpu accounting
|
||||
# Create cgroup mount point for cpu accounting
|
||||
mkdir /acct
|
||||
mount cgroup none /acct cpuacct
|
||||
mkdir /acct/uid
|
||||
|
||||
# Create cgroup mount point for memory
|
||||
# Create cgroup mount point for memory
|
||||
mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000
|
||||
mkdir /sys/fs/cgroup/memory 0750 root system
|
||||
mount cgroup none /sys/fs/cgroup/memory memory
|
||||
|
@ -111,7 +110,7 @@ loglevel 3
|
|||
# set fwmark on accepted sockets
|
||||
write /proc/sys/net/ipv4/tcp_fwmark_accept 1
|
||||
|
||||
# Create cgroup mount points for process groups
|
||||
# Create cgroup mount points for process groups
|
||||
mkdir /dev/cpuctl
|
||||
mount cgroup none /dev/cpuctl cpu
|
||||
chown system system /dev/cpuctl
|
||||
|
@ -136,21 +135,21 @@ loglevel 3
|
|||
write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000
|
||||
write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000
|
||||
|
||||
# qtaguid will limit access to specific data based on group memberships.
|
||||
# net_bw_acct grants impersonation of socket owners.
|
||||
# net_bw_stats grants access to other apps' detailed tagged-socket stats.
|
||||
# qtaguid will limit access to specific data based on group memberships.
|
||||
# net_bw_acct grants impersonation of socket owners.
|
||||
# net_bw_stats grants access to other apps' detailed tagged-socket stats.
|
||||
chown root net_bw_acct /proc/net/xt_qtaguid/ctrl
|
||||
chown root net_bw_stats /proc/net/xt_qtaguid/stats
|
||||
|
||||
# Allow everybody to read the xt_qtaguid resource tracking misc dev.
|
||||
# This is needed by any process that uses socket tagging.
|
||||
# Allow everybody to read the xt_qtaguid resource tracking misc dev.
|
||||
# This is needed by any process that uses socket tagging.
|
||||
chmod 0644 /dev/xt_qtaguid
|
||||
|
||||
# Create location for fs_mgr to store abbreviated output from filesystem
|
||||
# checker programs.
|
||||
# Create location for fs_mgr to store abbreviated output from filesystem
|
||||
# checker programs.
|
||||
mkdir /dev/fscklogs 0770 root system
|
||||
|
||||
# pstore/ramoops previous console log
|
||||
# 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
|
||||
|
@ -294,17 +293,17 @@ on post-fs-data
|
|||
#setprop vold.post_fs_data_done 1
|
||||
|
||||
on boot
|
||||
# basic network init
|
||||
# basic network init
|
||||
ifup lo
|
||||
hostname localhost
|
||||
domainname localdomain
|
||||
|
||||
# set RLIMIT_NICE to allow priorities from 19 to -20
|
||||
# set RLIMIT_NICE to allow priorities from 19 to -20
|
||||
setrlimit 13 40 40
|
||||
|
||||
# Memory management. Basic kernel parameters, and allow the high
|
||||
# level system server to be able to adjust the kernel OOM driver
|
||||
# parameters to match how it is managing things.
|
||||
# Memory management. Basic kernel parameters, and allow the high
|
||||
# level system server to be able to adjust the kernel OOM driver
|
||||
# parameters to match how it is managing things.
|
||||
write /proc/sys/vm/overcommit_memory 1
|
||||
write /proc/sys/vm/min_free_order_shift 4
|
||||
chown root system /sys/module/lowmemorykiller/parameters/adj
|
||||
|
@ -380,8 +379,8 @@ on boot
|
|||
chown system system /sys/kernel/ipv4/tcp_rmem_max
|
||||
chown root radio /proc/cmdline
|
||||
|
||||
# Define TCP buffer sizes for various networks
|
||||
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
|
||||
# Define TCP buffer sizes for various networks
|
||||
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
|
||||
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
|
||||
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
|
||||
setprop net.tcp.buffersize.ethernet 524288,1048576,3145728,524288,1048576,2097152
|
||||
|
@ -395,7 +394,7 @@ 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.
|
||||
# Define default initial receive window size in segments.
|
||||
setprop net.tcp.default_init_rwnd 60
|
||||
|
||||
class_start core
|
||||
|
@ -435,6 +434,7 @@ on property:sys.powerctl=*
|
|||
# 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}
|
||||
|
|
Loading…
Reference in New Issue