Update of /cvsroot/leaf/src/bering-uclibc4/source/modules
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9879/modules
Modified Files:
modutils
Log Message:
Changed mechanism of driver autoloading; added a+rx permissions for /
Index: modutils
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/modules/modutils,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** modutils 24 Jun 2010 22:28:04 -0000 1.5
--- modutils 25 Jun 2010 13:16:24 -0000 1.6
***************
*** 30,34 ****
#read /etc/modules.d
! cat /etc/modules.d/* | grep ^[a-z0-9A-Z] | sed 's/\.ko//' |
while read module args
do
--- 30,34 ----
#read /etc/modules.d
! cat /etc/modules.d/* 2>/dev/null| grep ^[a-z0-9A-Z] | sed 's/\.ko//' |
while read module args
do
***************
*** 39,54 ****
#autodetection of hardware
!
! #load device drivers
! for i in `find /sys/devices -iname modalias`; do
! /sbin/modprobe $i 2>/dev/null
! done
!
! # wait for drives
! [ "$DRV_WAIT" -gt 0 ] && sleep $DRV_WAIT
!
! #load scsi drivers (SATA/IDE drives, flash)
! for i in `lsalias scsi`; do
! /sbin/modprobe $i 2>/dev/null
done
-
\ No newline at end of file
--- 39,51 ----
#autodetection of hardware
! MODALIAS=`find /sys/devices -iname modalias -exec cat {} \;`
! TMODALIAS=""
! while [ `echo "$MODALIAS"|wc -l` -gt `echo "$TMODALIAS"|wc -l` ]; do
! for i in $MODALIAS; do
! /sbin/modprobe $i 2>/dev/null
! done
! TMODALIAS="$MODALIAS"
! MODALIAS=`find /sys/devices -iname modalias -exec cat {} \;`
! [ "$VERBOSE" ] && Lecho Loaded `echo "$TMODALIAS"|wc -l` modaliases
! [ "$DRV_WAIT" -gt 0 ] && sleep $DRV_WAIT
done
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits