用insmod加载的内核驱动模块,在关机后就丢失??除了编译进内核,还有没有其它方法让它关机
如题了,是不是只要一关机,所有加载的内核模块都会消失?是不是想要永久让一个驱动运行在内核中,只有编译到内核里去?? 不想编译进内核,写个开机脚本,就自动加载了。 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 写个开机自动运行的脚本来Load 嵌入式还是PC?
PC复杂点,
嵌入式的话,就是:/etc/inittab有不?有的话看它调用哪个脚本,一般是/etc/init.d/rcS,在这个脚本里写入 insmod ...就可以了 soga~~哈哈~~昨晚在群上也有人这么说了!
页:
[1]