WEB开发网
开发学院手机开发Android 开发 Android启动脚本init.rc 阅读

Android启动脚本init.rc

 2010-09-14 23:58:00 来源:WEB开发网   
核心提示:setkeyTBDsetprop < name> < value>Set system property < name> to < value>.setrlimit < resource> < cur> < max>Set the rl

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

上一页  1 2 3 4 5 6 7  下一页

Tags:Android 启动 脚本

编辑录入:coldstar [复制链接] [打 印]
赞助商链接