Http://bluedata.org/2008/06/14/centos_rhel-auto-load-modules/
The/etc/rc. sysinit file of centos4 (RHEL4) contains the following section:
# Loadmodules (forbackwardcompatibilitywithvars) If [-F/etc/rc. Modules]; then/etc/rc. modulesfi
Therefore, you can create the/etc/rc. Modules file to load the module. For example: VI/etc/rc. Modules
#! /Bin/sh # Thisscriptwillbeloadotheruser-definedmodules.modprobesoftdog
Chmod + x/etc/rc. Modules
However, before the above section of the/etc/rc. sysinit file of centos5 (rhel5) is as follows:
# Load other user-defined modulesforfilein/etc/sysconfig/modules/*. modules; do [-x $ file] & $ file done
You can create an executable file ending with XXXX. modules by referring to the udev-stw.modules under the/etc/sysconfig/modules directory to load the module.
Therefore, create a file named XXX. modules in the/etc/sysconfig/modules directory and assign the permission to 755.