LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4478|回复: 4

/etc/modules.conf怎么写?

[复制链接]
发表于 2002-11-12 22:03:12 | 显示全部楼层 |阅读模式
是不是就把想要加载的模块的名字写上就可以了?
例如:

#modules.conf
ne2k
#end modules.conf
发表于 2002-11-12 22:19:33 | 显示全部楼层
这个文件是不用修改的
看看你有没有/sbin/update-modules文件?
他是一个linux通用的模块管理脚本程序.仔细看看吧

如果你是gentoo模块管理都在/etc/modules.d/目录下面.
每次gentoo的重新启动,都将运行update-modules更新/etc/modules.conf文件.
 楼主| 发表于 2002-11-12 22:47:34 | 显示全部楼层

我现在是要写lfs的/etc/modules.conf文件,gentoo如果想要自己把想要的模块加进启动脚本了,是修改/etc/modules.autoload文件,我的声卡模块就是在这加的
发表于 2002-11-13 00:00:48 | 显示全部楼层
#! /bin/sh
# /etc/init.d/modutils: loads the appropriate modules in `boot'.


PATH="/sbin:/bin:/usr/sbin:/usr/bin"

[ -f /proc/modules ] || exit 0
[ -e /sbin/depmod ] || exit 0

echo -n "Calculating module dependencies... "
depmod -a > /dev/null
echo "done."

# Loop over every line in /etc/modules.autoload
echo -n 'Loading modules: '
(cat /etc/modules.autoload; echo) | # make sure there is a LF at the end
while read module args
do
        case "$module" in
                \#*|"") continue ;;
        esac
        echo -n "$module "
        modprobe $module $args
done
echo

#
# Just in case a sysadmin prefers generic symbolic links in
# /lib/modules/boot for boot time modules we will load these modules
#
if [ -n "`modprobe -l -t boot`" ]
then
        modprobe -a -t boot \*
fi

exit 0

这样不就结了
发表于 2002-11-13 07:28:22 | 显示全部楼层
我是把red hat下的给拷贝过去了,能用,有声卡和modem
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表