Chinaunix

标题: /etc/modprobe.conf文件内容 [打印本页]

作者: bobobian    时间: 2008-07-23 11:20
标题: /etc/modprobe.conf文件内容
/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
红色字体是什么意思呢?安装吗? 
作者: hisysjrw    时间: 2008-07-24 09:47
我的系统上没有这些内容
作者: jerrywjl    时间: 2008-07-24 09:51
这是系统上动态加载模块的配置文件,具体格式是“alias 别名 模块名称”
作者: bobobian    时间: 2008-07-25 10:36
原帖由 jerrywjl 于 2008-7-24 09:51 发表
这是系统上动态加载模块的配置文件,具体格式是“alias 别名 模块名称”

这只是在这个配置文件中来设置别名还是在这个文件里写入的模块才会被加载呢?
作者: 潘多拉的盒子    时间: 2010-08-25 10:20

作者: bingosek    时间: 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.
主要功能是执行命令或脚本来安装模块




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2