Autoloading of Modules, the Debian way.

arthur at linuxbox.nu arthur at linuxbox.nu
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
do
        case "$module" in
                \#*|"") continue ;;
        esac
        modprobe $module $args
done

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 linuxbox.nu
http://www.linuxbox.nu


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




More information about the lfs-dev mailing list