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
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/