详解Linuxrc、rcS、rc.local、Profile
来源:互联网 发布:python游戏编程好书 编辑:程序博客网 时间:2024/05/09 06:23
/Linuxrc 执行init 进程初始化文件。主要工作是把已安装根文件系统中的/etc 安装为ramfs,
并拷贝/mnt/etc/目录下所有文件到/etc,这里存放系统启动后的许多特殊文件;接着Linu
xrc 重新构建文件分配表inittab;之后执行系统初始化进程/sbin/init。
/mnt/etc/init.d/rcS 完成各个文件系统的 mount,再执行/usr/etc/rc.local;通过rcS 可
以调用 dhcp 程序配置网络。rcS 执行完了以后,init 就会在一个 console 上,按照 ini
ttab 的指示开一个 shell,或者是开 getty + login,这样用户就会看到提示输入用户名的
提示符。
/usr/etc/rc.local 这是被init.d/rcS 文件调用执行的特殊文件,与Linux 系统硬件平台相关,
如安装核心模块、进行网络配置、运行应用程序、启动图形界面等。
/usr/etc/profile rc.local 首先执行该文件配置应用程序需要的环境变量等。
Linuxrc
#!/bin/sh
echo "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
/bin/cp -a /mnt/etc/* /etc
echo "re-create the /etc/mtab entries"
# re-create the /etc/mtab entries
/bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /
/bin/mount -f -t ramfs ramfs /etc
exec /sbin/init
rcS
/mnt/etc/init.
d/
#!/bin/sh
/bin/mount -a
exec /usr/etc/rc.local
rc.local
/usr/etc/
#!/bin/sh
. /usr/etc/profile
echo "HELLO! Embest"
echo "ifconfig eth0 192.168.0.10"
ifconfig eth0 192.168.0.10 ?可自行配置开发板IP
Profile
/usr/etc/
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin ?设置命令工具所在位置
- 详解Linuxrc、rcS、rc.local、Profile
- 详解Linuxrc、rcS、rc.local、Profile
- 详解Linuxrc、rcS、rc.local、Profile
- 详解Linuxrc、rcS、rc.local、Profile
- 详解Linuxrc、rcS、rc.local、Profile
- linuxrc文件,rc.local文件,rcS文件,我的根文件系统启动脚本文件
- profile,rc.local执行顺序
- /etc/rc.local 与 /etc/profile
- /etc/profile 和 /etc/rc.d/rc.local启动顺序
- linuxrc 详解
- linuxrc详解
- linuxrc 详解
- linux rc.local profile.d/file 执行区别
- /etc/rc.d/rc.local 与 /etc/profile .bash_profile .bashrc 文件执行顺序
- 启动文件rc.local、/etc/bash.bashrc、~/bashrc、/etc/profile、~/.profile【转载from joyride】值得了解
- Linux 配置文件 启动文件rc.local、/etc/bash.bashrc、~/bashrc、/etc/profile、~/.profile加载顺序
- 启动文件rc.local、/etc/bash.bashrc、~/bashrc、/etc/profile、~/.profile【转载from joyride】值得了解
- 启动文件rc.local、/etc/bash.bashrc、~/bashrc、/etc/profile、~/.profile【转载from joyride】值得
- 软件测试实践
- MessageQueue
- 转 php gmail 邮件登陆验证
- 关于生成并发唯一性流水号的解决方案
- Web自动化测试-实战项目通关版
- 详解Linuxrc、rcS、rc.local、Profile
- 格式化
- 学习C++:实践者的方法(Beta1)
- VS中Debug模式和Release模式的区别
- DB2 SQL0954C错误解决办法
- web.xml中 上下文参数
- 视频解码优化
- 城域网架构及业务应用
- Myeclipse 引入项目的时候 Target runtime Apache Tomcat 6.0 is not defined 解决方法