Alexander Graf
--- /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, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-ppc+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ppc+owner@opensuse.org