Update of /cvsroot/leaf/src/bering-uclibc4/source/modules
In directory
sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21389/bering-uclibc4/source/modules
Modified Files:
buildtool.cfg modules modutils
Log Message:
Added auto-loading of modules that comes in .lrp; appended changelog
Index: modutils
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/modules/modutils,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** modutils 26 Apr 2010 09:02:44 -0000 1.1.1.1
--- modutils 22 May 2010 21:21:09 -0000 1.2
***************
*** 9,12 ****
--- 9,29 ----
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
+ # ---------------------------------------------------------
+ # expandpath - given a path, expand it
+ # code from apkg by David Douthitt
+ expandpath () {
+ local D=$(dirname $1)
+ if `echo "$D" | grep -v "^/" > /dev/null`; then
+ [ `dirname $1` = "." ] && D=$PWD || D=$PWD/$(dirname $1)
+ fi
+ echo $D/$(basename $1)
+ }
+ # ---------------------------------------------------------
+ PKGROOT=`expandpath ${PKGROOT:-"/"}`
+ LRPKG=${LRPKG:-"var/lib/lrpkg"}
+ PKGDIR="$PKGROOT/$LRPKG"
+ TMP=${TMP:-"/tmp"}
+ PKGDB=${PKGDB:-"$PKGDIR/packages"}
+
kernel=`uname -r`
ln -s /lib/modules /lib/modules/$kernel
***************
*** 22,23 ****
--- 39,49 ----
logger modutils module $module could not be loaded
done
+
+ #read $PKGDIR/*.modules - modules thar are provided in .lrp
+ cat $PKGDIR/*.modules* | grep ^[a-z0-9A-Z] | sed 's/\.ko//'
+ while read module args
+ do
+ modprobe $module $args 2>/dev/null
+ lsmod | grep -n -q ^$module || \
+ logger modutils module $module could not be loaded
+ done
Index: modules
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/modules/modules,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** modules 26 Apr 2010 09:02:44 -0000 1.1.1.1
--- modules 22 May 2010 21:21:09 -0000 1.2
***************
*** 19,23 ****
# Some modules need this, like 8390, natsemi, 8139too, tulip
crc32
- bitrev
# 8390 based ethernet cards
--- 19,22 ----
Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/modules/buildtool.cfg,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** buildtool.cfg 26 Apr 2010 09:02:44 -0000 1.1.1.1
--- buildtool.cfg 22 May 2010 21:21:09 -0000 1.2
***************
*** 1,4 ****
<File buildtool.mk>
! Server = cvs4-sourceforge
Revision = HEAD
Directory = modules
--- 1,4 ----
<File buildtool.mk>
! Server = cvs-sourceforge
Revision = HEAD
Directory = modules
***************
*** 6,10 ****
<File modules>
! Server = cvs4-sourceforge
Revision = HEAD
Directory = modules
--- 6,10 ----
<File modules>
! Server = cvs-sourceforge
Revision = HEAD
Directory = modules
***************
*** 12,16 ****
<File modutils>
! Server = cvs4-sourceforge
Revision = HEAD
Directory = modules
--- 12,16 ----
<File modutils>
! Server = cvs-sourceforge
Revision = HEAD
Directory = modules
***************
*** 20,24 ****
<modules>
Version = 2.6.x
! Revision = 5
Help <<EOF
--- 20,24 ----
<modules>
Version = 2.6.x
! Revision = 6
Help <<EOF
------------------------------------------------------------------------------
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits