Update of /cvsroot/leaf/src/bering-uclibc4/source/initrd
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv6945

Modified Files:
        root.linuxrc 
Log Message:
Added debugging


Index: root.linuxrc
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/initrd/root.linuxrc,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** root.linuxrc        25 Jun 2010 13:20:42 -0000      1.11
--- root.linuxrc        25 Jun 2010 20:01:30 -0000      1.12
***************
*** 74,77 ****
--- 74,78 ----
  ln -s /lib/modules /lib/modules/`uname -r`
  /sbin/depmod
+ [ "$VERBOSE" ] && cp /lib/modules/modules.dep.bb /linuxrc.depmod
  
  #---------mdev------------
***************
*** 105,113 ****
  TMODALIAS=""
  while [ `echo "$MODALIAS"|wc -l` -gt `echo "$TMODALIAS"|wc -l` ]; do
        for i in $MODALIAS; do
!               /sbin/modprobe $i 2>/dev/null 
        done
        sleep $usb_wait
-       [ "$VERBOSE" ] && Lecho Loaded `echo "$MODALIAS"|wc -l` modaliases
        TMODALIAS="$MODALIAS"
        MODALIAS=`find /sys/devices -iname modalias -exec cat {} \;`
--- 106,123 ----
  TMODALIAS=""
  while [ `echo "$MODALIAS"|wc -l` -gt `echo "$TMODALIAS"|wc -l` ]; do
+       [ "$VERBOSE" ] && qt echo Next iteration: `date`
+       MODCOUNT=0
        for i in $MODALIAS; do
!               [ "$VERBOSE" ] && qt echo -n Probing $i ...
!               if [ -z "`/sbin/modprobe $i 2>&1|grep \"not found\"`" ]; then
!                       MODCOUNT=$(($MODCOUNT+1))
!                       [ "$VERBOSE" ] && qt echo " found."
!               else
!                       [ "$VERBOSE" ] && qt echo " not found."
!               fi
        done
+       [ "$VERBOSE" ] && qt echo Successfully probed $MODCOUNT modules for 
`echo "$MODALIAS"|wc -l` modaliases, currently loaded:
+       [ "$VERBOSE" ] && qt lsmod
        sleep $usb_wait
        TMODALIAS="$MODALIAS"
        MODALIAS=`find /sys/devices -iname modalias -exec cat {} \;`


------------------------------------------------------------------------------
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

Reply via email to