openwrt启动过程(脚本)
2015-12-15 18:29
381 查看
来源: http://wiki.openwrt.org/doc/techref/preinit_mount#first.boot
基本的openwrt启动顺序为:
1、boot loader loads kernel
boot loader 加载内核
2、kernel loads whilst scaning the mtd partition rootfs for a valid superblock for mounting the SquashFS partition (which contains /etc). More info at technical.details
内核加载同时扫描mtd分区rootfs,查找一个有效的超级块区用来存放squashfs分区(这个分区中包含了/etc目录)
3、kernel calls
内核调用/etc/preinit
/etc/preinit为系统准备好多用户模式
/etc/preinit 执行/sbin/init(/sbin/init变为起始进程)
/sbin/init顺序执行/etc/inittab中的进程
7、Typically the first process launched is
执行顺序是按照/etc/iit.d/rcS中以“S”开头的后面跟的数字顺序。 /etc/rc.d是/etc/init.d的链接文件。
8、These script initialize the system and also initialize daemons that wait for input, so that when all the scripts have executed the normal system is active. On first boot this initializing includes the process of preparing the root filesystem for use.
基本的openwrt启动顺序为:
1、boot loader loads kernel
boot loader 加载内核
2、kernel loads whilst scaning the mtd partition rootfs for a valid superblock for mounting the SquashFS partition (which contains /etc). More info at technical.details
内核加载同时扫描mtd分区rootfs,查找一个有效的超级块区用来存放squashfs分区(这个分区中包含了/etc目录)
3、kernel calls
/etc/preinit(the kernel considers this to be the
init(or root) process
内核调用/etc/preinit
4、/etc/preinitprepares system for multiuser mode
/etc/preinit为系统准备好多用户模式
5、/etc/preinit
execs
/sbin/initwhich becomes the
init(or root) process and launches multiuser
/etc/preinit 执行/sbin/init(/sbin/init变为起始进程)
6、/sbin/initlaunches processes according to /etc/inittab.
/sbin/init顺序执行/etc/inittab中的进程
7、Typically the first process launched is
/etc/init.d/rcSwhich causes the scripts in
/etc/rc.dwhich begin with 'S' to be launched (in glob sort order). The
/etc/rc.ddirectory is populated with symlinks to the scripts in
/etc/init.d. Each script in
/etc/init.daccepts
enableand
disablearguments for creating and removing the symlinks.
执行顺序是按照/etc/iit.d/rcS中以“S”开头的后面跟的数字顺序。 /etc/rc.d是/etc/init.d的链接文件。
8、These script initialize the system and also initialize daemons that wait for input, so that when all the scripts have executed the normal system is active. On first boot this initializing includes the process of preparing the root filesystem for use.
相关文章推荐
- hadoop2.0 HA高可用笔记和搭建流程
- Linux Top 命令解析 比较详细(转)
- Linux添加/删除用户和用户组
- 创建Web项目的Docker镜像
- lINUX例行性计划任务
- web网站防攻击策略
- tomcat 配置
- Online网站集
- Linux-CentOS 安装配置ExifTool
- opencv学习笔记一
- 一次用bash+python分析NGINX日志的记录
- linux下使用JMX监控tomcat
- OpenCV2.4.11在VS2013中的props文件
- 老李分享:《Linux Shell脚本攻略》 要点(四)
- PHP登入网站抓取并且抓取数据
- opencv静态编译
- 理解RESTful架构
- 原理分析之二:架构分析
- centos 开启防火墙
- shell script基础一