将模块添加到启动模块列表

将模块添加到启动模块列表

b43将模块添加到启动模块列表的具体命令是什么?

我尝试添加b43到末尾/etc/modules,但收到拒绝访问的消息。为了在重启后打开无线功能,我必须使用命令sudo modprobe b43

答案1

您必须modulesroot权限打开

gksu gedit /etc/modules

输入您的密码(终端中不会出现任何内容)并按 Enter。

写在这里g43。这应该是您所需要的全部内容。

可能不是必需的,但如果需要特殊的选项/参数:

gksu gedit /etc/modprobe.d/g43.conf

在此处添加任何选项。

不要忘记保存(Ctrl+S)。

答案2

内核模块可以使用两种不同的自动加载方法:

/etc/modules.conf; 在其余服务之前加载模块。请参阅手册页或输入man 5 modules.conf以获得更多帮助。示例modules.conf

# modules.conf - configuration file for loading kernel modules
...
b43
...

/etc/rc.local:使用此方法在所有其他服务启动后加载模块,示例rc.local

#!/bin/sh -e
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
...
/sbin/modprobe b4
...
exit 0

相关内容