Re: [leaf-user] [leaf-devel] Docs for the 2 NIC config
by Erich Titl
 |
REPLY TO AUTHOR
|
 |
|
|
 |
REPLY TO GROUP
|
 |
|
Paul Rogers wrote:
> On Mon, 12 Oct 2009 22:15:15 +0200, "Erich Titl"
...
>
> And STILL get it all on one floppy? ;-) I'm one of the ones that has
> always been in favor of maintaining floppy compatability for a basic
> setup. As long as the behavior is documented where an installer is sure
> to see it, then I'm in favor of using the far simpler default behavior.
I _believe_ the script should not take more than a few hundred bytes as
you need those utilities anyway. I think modutils is the place to do it
# Loop over every line in /etc/modules.
echo 'Loading modules: '
(cat /etc/modules; echo) | # make sure there is a LF at the end
while read module args
do
case "$module" in
\#*|"") continue ;;
esac
echo -n "$module - "
MODTOLOAD=`find / -name $module.o |sort |sed -n 1p`
if [ "$MODTOLOAD" = "" ] ;then
module="` echo $module | cut -c-8`"
MODTOLOAD=`find / -name $module.o |sort |sed -n 1p `
fi
if [ ! "$MODTOLOAD" = "" ] ;then
insmod $MODTOLOAD $args
fi
# insmod /lib/modules/"$module".o $args
done
cheers
Erich
Bookmark with:
Delicious
Digg
reddit
Facebook
StumbleUpon
opensubscriber is not affiliated with the authors of this message nor responsible for its content.
|