Update of /cvsroot/leaf/src/bering-uclibc4/source/modules
In directory
sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv28785/bering-uclibc4/source/modules
Modified Files:
modutils
Log Message:
Added /etc/modules.d for .lrp module autoload; small cleanup.
Index: modutils
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/modules/modutils,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** modutils 22 May 2010 21:21:09 -0000 1.2
--- modutils 23 May 2010 10:50:50 -0000 1.3
***************
*** 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
--- 9,12 ----
***************
*** 40,45 ****
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
--- 23,28 ----
done
! #read /etc/modules.d
! cat /etc/modules.d/* | grep ^[a-z0-9A-Z] | sed 's/\.ko//' |
while read module args
do
------------------------------------------------------------------------------
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits