Android启动脚本init.rc
2010-09-14 23:58:00 来源:WEB开发网init "stuck". (??? maybe there should be a timeout?)
export < name> < value>
Set the environment variable < name> equal to < value> in the
global environment (which will be inherited by all processes
started after this command is executed)
ifup < interface>
Bring the network interface < interface> online.
import < filename>
Parse an init config file, extending the current configuration.
hostname < name>
Set the host name.
chdir < directory>
Change working directory.
chmod < octal-mode> < path>
Change file access permissions.
chown < owner> < group> < path>
Change file owner and group.
chroot < directory>
Change process root directory.
class_start < serviceclass>
Start all services of the specified class if they are
not already running.
class_stop < serviceclass>
Stop all services of the specified class if they are
currently running.
domainname < name>
Set the domain name.
insmod < path>
Install the module at < path>
mkdir < path> [mode] [owner] [group]
Create a directory at < path>, optionally with the given mode, owner, and
group. If not provided, the directory is created with permissions 755 and
owned by the root user and root group.
mount < type> < device> < dir> [ < mountoption> ]*
Attempt to mount the named device at the directory < dir>
< device> may be of the form mtd@name to specify a mtd block
device by name.
< mountoption>s include "ro", "rw", "remount", "noatime", ...
更多精彩
赞助商链接