免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 10322 | 回复: 5
打印 上一主题 下一主题

/etc/modprobe.conf文件内容 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-23 11:20 |只看该作者 |倒序浏览
/etc/modprobe.conf文件内容
这文件主要做什么用?为什么在里面会有install命令呢?我的配置文件内容是下面这些.但是我不明白里面的一些是什么意思
[root@node1 ~]# cat  /etc/modprobe.conf
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsi
alias scsi_hostadapter2 mptspi
alias scsi_hostadapter3 mptsas
alias scsi_hostadapter4 mptscsih
alias scsi_hostadapter5 ata_piix
alias snd-card-0 snd-ens1371
options snd-card-0 index=0
install snd-ens1371 /sbin/modprobe --ignore-install snd-ens1371 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :remove snd-ens1371 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
alias eth0 pcnet32
红色字体是什么意思呢?安装吗? 

论坛徽章:
0
2 [报告]
发表于 2008-07-24 09:47 |只看该作者
我的系统上没有这些内容

论坛徽章:
0
3 [报告]
发表于 2008-07-24 09:51 |只看该作者
这是系统上动态加载模块的配置文件,具体格式是“alias 别名 模块名称”

论坛徽章:
0
4 [报告]
发表于 2008-07-25 10:36 |只看该作者
原帖由 jerrywjl 于 2008-7-24 09:51 发表
这是系统上动态加载模块的配置文件,具体格式是“alias 别名 模块名称”

这只是在这个配置文件中来设置别名还是在这个文件里写入的模块才会被加载呢?

论坛徽章:
0
5 [报告]
发表于 2010-08-25 10:20 |只看该作者

论坛徽章:
0
6 [报告]
发表于 2010-08-25 12:04 |只看该作者
install modulename command...
              This is the most powerful primitive: it tells modprobe to run your command instead of inserting the  mod-
              ule in the kernel as normal. The command can be any shell command: this allows you to do any kind of com-
              plex processing you might wish. For example, if the module "fred" works better with the  module  "barney"
              already  installed  (but it doesn’t depend on it, so modprobe won’t automatically load it), you could say
              "install fred /sbin/modprobe barney; /sbin/modprobe --ignore-install  fred",  which  would  do  what  you
              wanted.  Note the --ignore-install, which stops the second modprobe from running the same install command
              again.  See also remove below.
主要功能是执行命令或脚本来安装模块
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP