[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding args for modules

In article <[🔎] m0tyWgp-00063cC@mongo.pixar.com>,
Bruce Perens <bruce@pixar.com> wrote:
>I think we have to make arguments work in the module file. I have the
>sinking feeling that it's my responsibility, if it isn't Miquel's.
>Fortunately, I've been working on a menu interface to configure modules,
>so I am hacking those scripts now.

I have sent a replacement /etc/init.d/modules script to Michael Meskes
and he included it in the modules package that he uploaded. He's not
the maintainer though (I thought so at first) so a later version by
the official maintainer might have the old script again.

Anyway its short enough to include here. I think I should send it
to the real maintainer but I can't look his address at the moment
(I'm at home right now and my dpkg listing here lists Ian Murdoch, but I
think he has handed it over to someone else).

#! /bin/sh
# /etc/init.d/modules: loads the appropriate modules in `boot'.


# See if we have any modules.
[ -d /lib/modules/`uname -r` ] || exit 0

echo -n "Calculating module dependencies... "
depmod -a
echo "done."

# Loop over every line in /etc/modules.
echo -n 'Loading modules:'
while read module args
	case "$module" in
		\#*|"") continue ;;
	echo " $module"
	modprobe $module $args
done < /etc/modules

+ Miquel van Smoorenburg   + Cistron Internet Services +  Living is a     |
| miquels@cistron.nl (SP6) | Independent Dutch ISP     |   horizontal     |
+ miquels@drinkel.ow.org   + http://www.cistron.nl/    +      fall        +

Reply to: