On Sun, Jul 04, 1999 at 05:46:20AM -0600, Karl F. Larsen wrote:
>       In Debian do you have to list each device in your
> /etc/init.d/modules file? I have to list it with every line looking like
> this:
> 
>       /sbin/madprobe msdos
> 
> It only took 15 minutes to decide to do it and do it...:-)

Err no, we just put (eg one server box here):

nfs
ne
ne2k-pci
ip_alias
serial
ppp
eql

Then in /etc/init.d/modutils the relevant code is:

# Loop over every line in /etc/modules.
echo -n 'Loading modules: '
(cat /etc/modules; echo) | # make sure there is a LF at the end
while read module args
do
        case "$module" in
                auto)   [ ${startkerneld} -eq 0 -a -x /sbin/kerneld ] && \
                        echo && /etc/init.d/kerneld start && startkerneld=1;
                        continue ;;
                noauto) continue ;;
                \#*|"") continue ;;
        esac
        echo -n "$module "
        modprobe $module $args
done


"auto" is a magic keyword which loads kerneld straight away (and does
nothing if kmod is being used).

>       You have been a great help Hamish. I'm in contact with the guy who
> wrote the mini HOWTO Modules. His is dated now and we are talking about an
> update.

Excellent.


Cheers,
Hamish VK3SB
-- 
Hamish Moffatt       Mobile: +61 412 011 176       [EMAIL PROTECTED]

Rising Software Australia Pty. Ltd. 
Developers of music education software including Auralia & Musition.
31 Elmhurst Road, Blackburn, Victoria Australia, 3130
Phone: +61 3 9894 4788  Fax: +61 3 9894 3362  USA Toll Free: 1-888-667-7839
Internet: http://www.rising.com.au/

Reply via email to