Re: Call for testing

Andreas Schwab <[email protected]>
Newsgroups gmane.linux.suse.ppc
Message-ID <[email protected]>
Alexander Graf <[email protected]> writes:

> --- /bin/show_of_path.sh.bkp	2012-10-08 09:38:47.715993663 +0200
> +++ /bin/show_of_path.sh	2012-10-08 10:03:17.603993398 +0200
> @@ -327,7 +327,14 @@
>  	ide_port=$of_disk_scsi_host
>  	ide_channel=$of_disk_scsi_id
>  
> -	cd ../../..
> +	until test -f devspec
> +	do
> +		cd ..
> +		if test "$PWD" = "/"
> +		then
> +			break
> +		fi
> +	done

Or like this:

--- a/show_of_path.sh
+++ b/show_of_path.sh
@@ -327,6 +327,7 @@ case "$file_full_sysfs_path" in
 	ide_port=$of_disk_scsi_host
 	ide_channel=$of_disk_scsi_id
 
+	case ${file_full_sysfs_path} in */ata+([0-9])/*) cd ..; esac
 	cd ../../..
 	;;
     */host+([0-9])/rport-+([0-9]):+([0-9])-+([0-9])/target+([0-9:])/+([0-9]):+([0-9]):+([0-9]):+([0-9]))

Andreas.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]
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.