文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>ubuntu mid启动过程浅析 (二)

ubuntu mid启动过程浅析 (二)

时间:2009-05-12  来源:hanjinlai

下面是/etc/rcS.D目录下的所有脚步文件,其实都是/etc/init.d目录下文件的符号链接
#前面带@号的文件代表mid版本相对于现在的官方arm版本而特有的文件

S01mountkernfs.sh(mount内核虚拟文件系统)
------------------------------------------------------------------------------
# Provides:          mountkernfs
# Required-Start:
# Required-Stop:
# Should-Start:      glibc
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount kernel virtual file systems.
# Description:       Mount initial set of virtual filesystems the kernel
#                    provides and that are required by everything.

S02hostname.sh(设置基于/etc/hostname的主机名)
-------------------------------------------------------------------------------
# Provides:          hostname
# Required-Start:
# Required-Stop:
# Should-Start:      glibc
# Default-Start:     S
# Default-Stop:
# Short-Description: Set hostname based on /etc/hostname
# Description:       Read the machines hostname from /etc/hostname, and
#                    update the kernel value with this value.  If
#                    /etc/hostname is empty, the current kernel value
#                    for hostname is used.  If the kernel value is
#                    empty, the value 'localhost' is used.

S06keyboard-setup(设置控制台键盘)
------------------------------------------------------------------------------
# Provides:          keyboard-setup
# Required-Start:    mountkernfs udev
# Required-Stop:
# Should-Start:      keymap
# X-Start-Before:    checkroot
# Default-Start:     S
# Default-Stop:
# Short-Description: Set preliminary keymap
# Description:       Set the console keyboard as early as possible
#                    so during the file systems checks the administrator
#                    can interact.  At this stage of the boot process
#                    only the ASCII symbols are supported.
### END INIT INFO

@ S07linux-restricted-modules-common
-----------------------------------------------------------------------------

S10udev(启动udev守护进程,udev能够根据系统中的硬件设备的状态动态更新设备文件,
包括设备文件的创建,删除等。设备文件通常放在/dev目录下。使用udev后,在/dev目录下就只包含系统中真正存在的设备。)
-----------------------------------------------------------------------------
# Provides:          udev
# Required-Start:    mountkernfs
# Required-Stop:
# Should-Start:
# Default-Start:     S
# Default-Stop:
# Short-Description: Start the udev daemon.
# Description:       Mounts the /dev virtual filesystem, starts the udev
#                    daemon and populates /dev.

S11mountdevsubfs.sh(在/dev下mount指定的文件系统)
-----------------------------------------------------------------------------
# Provides:          mountdevsubfs
# Required-Start:    mountkernfs
# Required-Stop:
# Should-Start:      udev
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount special file systems under /dev.
# Description:       Mount the virtual filesystems the kernel provides
#                    that ordinarily live under the /dev filesystem.

S15module-init-tools(加载/etc/modules中枚举的模块,mid版中什么也没做,modules中是空的)
-----------------------------------------------------------------------------
# Provides:          module-init-tools
# Required-Start:   
# Required-Stop:    
# Should-Start:      checkroot
# Should-stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Process /etc/modules.
# Description:       Load the modules listed in /etc/modules.

S17procps(在内核启动时间配置内核参数)
-----------------------------------------------------------------------------
# Provides:          procps
# Required-Start:    mountkernfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Configure kernel parameters at boottime
# Description:  Loads kernel parameters that are specified in /etc/sysctl.conf

S20checkroot.sh(检查根文件系统)
-----------------------------------------------------------------------------
# Provides:          checkroot
# Required-Start:    mountdevsubfs hostname
# Required-Stop:    
# Should-Start:      keymap hdparm bootlogd
# Should-stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Check to root file system.

S22mtab.sh(更新mtab file)
------------------------------------------------------------------------------
# Provides:          mtab
# Required-Start:    checkroot
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Update mtab file.
# Description:       Update the mount program's mtab file after
#                    all local filesystems have been mounted.

S30checkfs.sh(检查所有的文件系统)
--------------------------------------------------------------------------------
# Provides:          checkfs
# Required-Start:    checkroot
# Required-Stop:
# Should-Start:      mtab cryptdisks
# Default-Start:     S
# Default-Stop:
# Short-Description: Check all filesystems.

S35mountall.sh(mount 所有的文件系统)
-------------------------------------------------------------------------------
# Provides:          mountall
# Required-Start:    checkfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount all filesystems.

S36mountall-bootclean.sh(在所有的本地文件系统mount后清楚临时的文件系统)
-------------------------------------------------------------------------------
# Provides:          mountall-bootclean
# Required-Start:    mountall
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: bootclean after mountall.
# Description:       Clean temporary filesystems after
#                    all local filesystems have been mounted.

S37mountoverflowtmp(mount tmpfs)
-------------------------------------------------------------------------------
# Provides:          mountoverflowtmp
# Required-Start:    mountall-bootclean
# Required-Stop:     umountfs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: mount emergency /tmp.
# Description:       Mount a tmpfs on /tmp if there would
#                    otherwise be too little space to log in.

S37udev-finish(udev完成后做一些工作)
-------------------------------------------------------------------------------
# Provides:          udev-finish
# Required-Start:    mountall-bootclean udev
# Required-Stop:
# Should-Start:
# Default-Start:     S
# Default-Stop:
# Short-Description: Finish up udev.
# Description:       Copies the udev log into /var/log and copies any rules
#                    generated while the root filesystem was read-only into
#                    /etc/udev/rules.d

S40networking(指出网络接口)
-------------------------------------------------------------------------------
# Provides:          networking
# Required-Start:    mountkernfs ifupdown $local_fs
# Required-Stop:     ifupdown $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Raise network interfaces.

S45mountnfs.sh(等待网络文件系统mount完成)
-------------------------------------------------------------------------------
# Provides:          mountnfs
# Required-Start:    $local_fs
# Required-Stop:
# Should-Start:      $network $portmap nfs-common  udev-mtab
# Default-Start:     S
# Default-Stop:
# Short-Description: Wait for network file systems to be mounted
# Description:       Network file systems are mounted by
#                    /etc/network/if-up.d/mountnfs in the background
#                    when interfaces are brought up; this script waits
#                    for them to be mounted before carrying on.

S46mountnfs-bootclean.sh(在网络文件系统mount完成后做一些清理工作)
-------------------------------------------------------------------------------
# Provides:          mountnfs-bootclean
# Required-Start:    mountnfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: bootclean after mountnfs.
# Description:       Clean temporary filesystems after
#                    network filesystems have been mounted.

S49console-setup(设置控制台字体和按键映射表)
--------------------------------------------------------------------------------
# Provides:          console-setup
# Required-Start:    $remote_fs
# Required-Stop:
# Should-Start:      console-screen
# Default-Start:     S
# Default-Stop:
# Short-Description: Set console font and keymap

S55bootmisc.sh(一些清理工作)
--------------------------------------------------------------------------------
# Provides:          bootmisc
# Required-Start:    hostname $remote_fs
# Required-Stop:
# Should-Start:      udev
# Default-Start:     S
# Default-Stop:
# Short-Description: Miscellaneous things to be done during bootup.
# Description:       Some cleanup.  Note, it need to run after mountnfs-bootclean.sh.

S55urandom()
--------------------------------------------------------------------------------
# Provides:          urandom
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Save and restore random seed between restarts.
# Description        This script saves the random seed between restarts.
#                    It is called from the boot, halt and reboot scripts.

S70x11-common
---------------------------------------------------------------------------------
# /etc/init.d/x11-common: set up the X server and ICE socket directories
### BEGIN INIT INFO
# Provides:          x11-common
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:
### END INIT INFO
相关阅读 更多 +
排行榜 更多 +
儿童学英语

儿童学英语

学习教育 下载
今天开始生存

今天开始生存

动作格斗 下载
飞碟快闪

飞碟快闪

动作格斗 下载