Android启动脚本init.rc
2010-09-14 23:58:00 来源:WEB开发网setkey
TBD
setprop < name> < value>
Set system property < name> to < value>.
setrlimit < resource> < cur> < max>
Set the rlimit for a resource.
start < service>
Start a service running if it is not already running.
stop < service>
Stop a service from running if it is currently running.
symlink < target> < path>
Create a symbolic link at < path> with the value < target>
sysclktz < mins_west_of_gmt>
Set the system clock base (0 if system clock ticks in GMT)
trigger < event>
Trigger an event. Used to queue an action from another
action.
write < path> < string> [ < string> ]*
Open the file at < path> and write one or more strings
to it with write(2)
Properties
----------
Init updates some system properties to provide some insight into
what it's doing:
init.action
Equal to the name of the action currently being executed or "" if none
init.command
Equal to the command being executed or "" if none.
init.svc.< name>
State of a named service ("stopped", "running", "restarting")
Example init.conf
-----------------
# not complete -- just providing some examples of usage
#
on boot
export PATH /sbin:/system/sbin:/system/bin
export LD_LIBRARY_PATH /system/lib
mkdir /dev
mkdir /proc
mkdir /sys
mount tmpfs tmpfs /dev
mkdir /dev/pts
mkdir /dev/socket
mount devpts devpts /dev/pts
mount proc proc /proc
mount sysfs sysfs /sys
更多精彩
赞助商链接