85-pcmcia.rules 942 B

1234567891011121314151617181920212223242526272829
  1. # PCMCIA devices:
  2. #
  3. ACTION!="add", GOTO="pcmciautils_end"
  4. # Very few CIS firmware entries (which we use for matching)
  5. # are so broken that we need to read out random bytes of it
  6. # instead of the manufactor, card or product ID. Then the
  7. # matching is done in userspace.
  8. SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  9. RUN+="/sbin/pcmcia-check-broken-cis"
  10. # However, the "weak" matching by func_id is only allowed _after_ modprobe
  11. # returns, so that "strong" matches have a higher priority.
  12. SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  13. RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'"
  14. # PCMCIA sockets:
  15. #
  16. # modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
  17. SUBSYSTEM=="pcmcia_socket", \
  18. RUN+="/sbin/modprobe -Qb pcmcia"
  19. # if this is a PCMCIA socket which needs a resource database,
  20. # pcmcia-socket-startup sets it up
  21. SUBSYSTEM=="pcmcia_socket", \
  22. RUN+="/sbin/pcmcia-socket-startup"
  23. LABEL="pcmciautils_end"