mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
723 B

  1. diff -pruN udev-068-orig/extras/scsi-devfs.sh udev-068/extras/scsi-devfs.sh
  2. --- udev-068-orig/extras/scsi-devfs.sh 2005-10-11 17:33:26.000000000 +0200
  3. +++ udev-068/extras/scsi-devfs.sh 2005-10-12 10:17:44.000000000 +0200
  4. @@ -83,6 +83,16 @@ l_pci="domain$pci_domain/bus$pci_bus/slo
  5. l_phy="bus/pci/$l_pci/scsi/$l_com"
  6. s_phy="$1/pci/$pci_addr/$s_com"
  7. -echo $l_phy $s_phy $l_log $s_log
  8. +for x in /dev/discs/disc* ; do
  9. + if readlink $x/disc | grep -q "$l_pci" ; then
  10. + x=`echo $x | cut -f3 -dc` # gives the number in disc0
  11. + break
  12. + fi
  13. + unset x
  14. +done
  15. +if [ -z "${x}" ] ; then
  16. + x="`ls /dev/discs/ | grep -c .`"
  17. +fi
  18. +echo $l_phy $s_phy $l_log $s_log discs/disc${x}/${lpart}