Autoloading of Modules, the Debian way.

arthur at arthur at
Wed Mar 7 13:59:58 PST 2001

Debian has a file called /etc/modules.  I borrowed from their code to make
a quick and dirty hack of autoloading of modules at boot without kerneld
or kmod.  This works for me:

(cat modules; echo) | # make sure there is a LF at the end
while read /etc/module args
        case "$module" in
                \#*|"") continue ;;
        modprobe $module $args

The case is for stripping comments.  I am calling it /etc/init.d/modprobe.
ALl modules to load at boot are in /etc/modules

Arthur H. Johnson II
Systems Engineer
The Linux Box
arthur at

Unsubscribe: send email to lfs-discuss-request at
and put unsubscribe in the subject header of the message

More information about the lfs-dev mailing list