- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux操作系统详解(第二部分),linux操作系统详解,linuxtop命令详解,linuxps命令详解,linux分区详解,linux命令详解手册,linux文件系统详解,linux启动过程详解,linux常用命令详解,linux命令详解词典
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # 下面语句对根系统实行磁盘空间限定,执行shell命令quotaon。 if [-x/sbin/quotaon]; then echo ″Turning on user and group quotas for root filesystem″ /sbin/quotaon/ fi # 下面命令是设置PNP,首先检查参数,执行shell命令mount。 # 在if语句中采用输出重定向,定义变量PNP。 # check for arguments mount -t proc/proc/proc if grep -i nopnp/proc/cmdline/dev/null; then PNP= else PNP=yes fi # 以下语句设置PNP, 先使用一个简单if语句,复合条件,并引用变量PNP。 # 执行shell命令isapnp。 # set up PNP if [-x /sbin/isapnp -a -f /etc/isapnp.conf]; then if [-n ″$PNP″]; then echo ″Setting up ISA PNP devices″ /sbin/isapnp/etc/isapnp.conf else echo ″Skipping ISA PNP configuration at users request″ fi fi # 下面命令重新mount根文件系统,执行shell命令mount # 如果/etc/HOSTNAME不存在,则把${HOSTNAME}变量的值输出到/etc/HOSTNAME文件中。 # Remount the root filesystem read-write. echo ″Remounting root filesystem in read-write mode.″ mount -n -o remount,rw / if [! -f /etc/HOSTNAME]; then echo ${HOSTNAME} /etc/HOSTNAME fi # 清空/ etc/mtab文件 # clear mtab /etc/mtab # 执行shell命令,把/和/proc文件系统加载上。 # Enter root and /proc into mtab. mount -f / mount -f /proc # 如果/proc/ksyms文件存在, 定义变量USEMODULES为y。 if [-f /proc/ksyms]; then USEMODULES=y else USEMODULES= fi # 下面命令是获取要执行的模块。 # 先执行shell命令rm删除文件, 引用变量USEMODULES, # 并用set给位置变量强制赋值,引用系统变量$#,引用位置变量$1, # 在if语句中使用管道命令,使用输出重定向。 # Get the modules ready to go -- we use awk here as cut is in /usr/bin rm -f /lib/modules/preferred if [-n $USEMODULES]; then set `cat /proc/cmdline` while [$# -gt 0]; do if echo $1|grep ′^BOOT-IMAGE=′ /dev/null ; then # # # 中间略去部分语句 # # 下面语句初始化串口, 执行shell命令rc.serial。 # Initialize the serial ports. if [-f /etc/rc.d/rc.serial]; then . /etc/rc.d/rc.serial fi # 下面语句加载模块, 执行shell命令rc.modules。 # Load modules (for backward compatibility with VARs) if [-f /etc/rc.d/rc.modules]; then /etc/rc.d/rc.modules fi # 下面语句是检查SCSI磁带设备。 # If a SCSI tape has been
文档评论(0)