LKM.CONF(5)

NAME
lkm.conf - loadable kernel module configuration file.

DESCRIPTION
The lkm.conf file specifies loadable kernel modules, see lkm(4), that are to be loaded a boot time. The lkm.conf file is processed by /etc/rc.lkm at system boot time, if it exists.

Each line of the file is of the form

    path options entry postinstall output when

Except for the path, all other fields can be "-" to indicate empty.

The path is either an absolute pathname, or the name of a file in /lkm or /usr/lkm that is the LKM to be loaded.

The options is some combination of the -d and -v options to modload(8).

The entry is the C symbol to call to initialise the module, defaulting to xxxinit().

The postinstall script is run after the LKM is installed.

The output of the ld(1) command is stored in output.

The when field specifies at which time in the startup process the LKM is loaded. There are three predefined values which correspond to three points in the processing of the system startup script /etc/rc:

BEFORENET - before networking is started. This works only
    if the /usr filesystem can already be mounted at this time.

BEFOREMOUNT - before all filesystems listed in
    /etc/fstab are mounted (the /usr and /var filesystems are already present).

AFTERMOUNT - after all filesystems are mounted.

A "-" entry defaults to BEFORENET.

FILES
/etc/rc.lkm /etc/lkm.conf /etc/rc

SEE ALSO
modload(8), lkm(4)

HISTORY
The lkm.conf file appeared in NetBSD 1.3.