20114016039 发表于 2012-1-29 23:08:53

用insmod加载的内核驱动模块,在关机后就丢失??除了编译进内核,还有没有其它方法让它关机

如题了,是不是只要一关机,所有加载的内核模块都会消失?

是不是想要永久让一个驱动运行在内核中,只有编译到内核里去??

writer15 发表于 2012-1-30 00:56:26

不想编译进内核,写个开机脚本,就自动加载了。

root 发表于 2012-1-30 01:48:05

MODULES(5)                                                                                                                                     MODULES(5)

NAME
       /etc/modules - kernel modules to load at boot time

DESCRIPTION
       The/etc/modulesfilecontains the names of kernel modules that are to be loaded at boot time, one per line. Arguments can be given in the same
       line as the module name. Lines beginning with a '#' are ignored.

SEE ALSO
       depmod(8) modprobe(8) modprobe.conf(5)

Debian GNU/Linux

pcwhy 发表于 2012-1-30 02:00:16

写个开机自动运行的脚本来Load

tinux 发表于 2012-1-30 07:41:28

嵌入式还是PC?
PC复杂点,
嵌入式的话,就是:/etc/inittab有不?有的话看它调用哪个脚本,一般是/etc/init.d/rcS,在这个脚本里写入 insmod ...就可以了

20114016039 发表于 2012-1-30 13:14:23

soga~~哈哈~~昨晚在群上也有人这么说了!
页: [1]
查看完整版本: 用insmod加载的内核驱动模块,在关机后就丢失??除了编译进内核,还有没有其它方法让它关机