slitaz-boot-scripts diff etc/init.d/rc.functions @ rev 158

rcS: get all earlier boot option at one time + home= wait for kernel usb delay
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 26 15:13:25 2009 +0200 (2009-04-26)
parents 31520720987c
children 599ec52ec156
line diff
     1.1 --- a/etc/init.d/rc.functions	Mon Dec 01 23:27:32 2008 +0000
     1.2 +++ b/etc/init.d/rc.functions	Sun Apr 26 15:13:25 2009 +0200
     1.3 @@ -31,7 +31,8 @@
     1.4  {
     1.5  	if [ ! -e $1 ]; then
     1.6  		return 1
     1.7 -	elif grep -qs "Name:.$(basename $2)$" /proc/$(cat $1)/status ; then
     1.8 +	elif grep -qs "Name:.$(basename $2)$" \
     1.9 +			/proc/$(cat $1 | sed 's/[^0-9]//g')/status ; then
    1.10  		return 0
    1.11  	else
    1.12  		rm -f $1