OpenSDE Packages Database (without history before r20070)
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.

43 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../pcmciautils/udev-rules-hotfix.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -ruN pcmciautils-014.orig/udev/rules-base pcmciautils-014/udev/rules-base
  17. --- pcmciautils-014.orig/udev/rules-base 2006-06-01 11:07:52.000000000 +0200
  18. +++ pcmciautils-014/udev/rules-base 2007-01-08 21:30:31.000000000 +0100
  19. @@ -3,12 +3,12 @@
  20. # are so broken that we need to read out random bytes of it
  21. # instead of the manufactor, card or product ID. Then the
  22. # matching is done in userspace.
  23. -ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
  24. +ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  25. RUN+="/sbin/pcmcia-check-broken-cis"
  26. # However, the "weak" matching by func_id is only allowed _after_ modprobe
  27. # returns, so that "strong" matches have a higher priority.
  28. -ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
  29. +ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  30. RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'"
  31. # PCMCIA sockets:
  32. diff -ruN pcmciautils-014.orig/udev/rules-modprobe pcmciautils-014/udev/rules-modprobe
  33. --- pcmciautils-014.orig/udev/rules-modprobe 2006-06-01 11:07:52.000000000 +0200
  34. +++ pcmciautils-014/udev/rules-modprobe 2007-01-08 21:30:31.000000000 +0100
  35. @@ -1,3 +1,3 @@
  36. # modprobe $modalias loads all possibly appropriate modules
  37. -ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
  38. - RUN+="/sbin/modprobe $modalias"
  39. +ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  40. + RUN+="/sbin/modprobe $env{MODALIAS}"