[leaf-commits] src/bering-uclibc4/source/initrd root.linuxrc, 1.9, 1.10

Andrew <[email protected]>
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/initrd
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9879/initrd

Modified Files:
	root.linuxrc 
Log Message:
Changed mechanism of driver autoloading; added a+rx permissions for /


Index: root.linuxrc
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/initrd/root.linuxrc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** root.linuxrc	24 Jun 2010 22:23:44 -0000	1.9
--- root.linuxrc	25 Jun 2010 13:16:24 -0000	1.10
***************
*** 38,44 ****
  
  Lecho () { echo "LINUXRC: $@"; }
! lsalias () {	for i in $@; do 
! 		    cat /sys/bus/$i/devices/*/modalias 2>/dev/null;
! 		done; }
  
  PFX=/var/lib/lrpkg
--- 38,44 ----
  
  Lecho () { echo "LINUXRC: $@"; }
! #lsalias () {	for i in $@; do 
! #		    cat /sys/bus/$i/devices/*/modalias 2>/dev/null;
! #		done; }
  
  PFX=/var/lib/lrpkg
***************
*** 56,59 ****
--- 56,60 ----
  
  /bin/busybox --install -s
+ /bin/chmod +rx /
  
  VERSION="`cat $PFX/initrd.version`"
***************
*** 93,99 ****
  
  #load device drivers
! for i in `find /sys/devices -iname modalias`; do
! 	/sbin/modprobe `cat $i` 2>/dev/null 
! done
  
  for i in `echo $KCMD_KMODULES|sed 's/,/ /g'`; do
--- 94,100 ----
  
  #load device drivers
! #for i in `find /sys/devices -iname modalias`; do
! #	/sbin/modprobe `cat $i` 2>/dev/null 
! #done
  
  for i in `echo $KCMD_KMODULES|sed 's/,/ /g'`; do
***************
*** 101,111 ****
  done
  
  # wait for USB drive
! sleep $usb_wait
  
  #load scsi drivers (SATA/IDE drives, flash)
! for i in `lsalias scsi`; do
! 	/sbin/modprobe $i 2>/dev/null 
! done
  
  [ "$VERBOSE2" ] && (echo "Modules loaded:"; lsmod)
--- 102,124 ----
  done
  
+ 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
+ 	sleep $usb_wait
+ done
+ 
  # wait for USB drive
! #sleep $usb_wait
  
  #load scsi drivers (SATA/IDE drives, flash)
! #for i in `lsalias scsi`; do
! #	/sbin/modprobe $i 2>/dev/null 
! #done
  
  [ "$VERBOSE2" ] && (echo "Modules loaded:"; lsmod)


------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.