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.

29 lines
1.1 KiB

  1. diff -pruN udev-063/etc/udev/debian/devfs.rules udev-063-patch/etc/udev/debian/devfs.rules
  2. --- udev-063/etc/udev/debian/devfs.rules 2005-09-10 08:53:44.000000000 +0200
  3. +++ udev-063-patch/etc/udev/debian/devfs.rules 2005-09-10 08:51:23.000000000 +0200
  4. @@ -21,7 +21,7 @@ BUS=="ide", KERNEL=="hd[a-z]", SYSFS{rem
  5. # IDE devices
  6. BUS=="ide", KERNEL=="hd[a-z]*", \
  7. PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", \
  8. - NAME="%c{1}", SYMLINK+="%k %c{2}"
  9. + NAME="%c{1}", SYMLINK+="%k %c{2} %c{3}"
  10. # SCSI devices
  11. BUS=="scsi", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", \
  12. diff -pruN udev-063/extras/scsi-devfs.sh udev-063-patch/extras/scsi-devfs.sh
  13. --- udev-063/extras/scsi-devfs.sh 2005-07-15 01:09:21.000000000 +0200
  14. +++ udev-063-patch/extras/scsi-devfs.sh 2005-09-10 08:49:28.000000000 +0200
  15. @@ -83,6 +83,12 @@ l_pci="domain$pci_domain/bus$pci_bus/slo
  16. l_phy="bus/pci/$l_pci/scsi/$l_com"
  17. s_phy="$1/pci/$pci_addr/$s_com"
  18. -echo $l_phy $s_phy $l_log $s_log
  19. +x=0
  20. +while [ -e /dev/discs/disc$x ] ; do
  21. + [[ "`readlink /dev/discs/disc$x/disc`" = *${l_pci}* ]] && break
  22. + x=$(($x+1))
  23. +done
  24. +
  25. +echo $l_phy $s_phy $l_log $s_log discs/disc${x}/${lpart}