diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-30 23:33:30 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-30 23:33:30 (GMT) |
commit | f61d34210632b6304d2beb11e850b0ad30386174 (patch) | |
tree | 1f978c655d5b3be78695c6d93442085fae92a68f /abs/core/pcmciautils/60-pcmcia.rules | |
parent | e2180d2a70197872ac049cf04a686d85f84facd0 (diff) | |
download | linhes_pkgbuild-f61d34210632b6304d2beb11e850b0ad30386174.zip linhes_pkgbuild-f61d34210632b6304d2beb11e850b0ad30386174.tar.gz linhes_pkgbuild-f61d34210632b6304d2beb11e850b0ad30386174.tar.bz2 |
pcmciautils: update
Diffstat (limited to 'abs/core/pcmciautils/60-pcmcia.rules')
-rw-r--r-- | abs/core/pcmciautils/60-pcmcia.rules | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/core/pcmciautils/60-pcmcia.rules b/abs/core/pcmciautils/60-pcmcia.rules new file mode 100644 index 0000000..aa3c1a2 --- /dev/null +++ b/abs/core/pcmciautils/60-pcmcia.rules @@ -0,0 +1,30 @@ +# PCMCIA devices: +# +ACTION!="add", GOTO="pcmciautils_end" +# modprobe $env{MODALIAS} loads all possibly appropriate modules +SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ + RUN+="/lib/udev/load-modules.sh $env{MODALIAS}" + +# Very few CIS firmware entries (which we use for matching) +# are so broken that we need to read out random bytes of it +# instead of the manufactor, card or product ID. Then the +# matching is done in userspace. +SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ + RUN+="/lib/udev/pcmcia-check-broken-cis" + +# However, the "weak" matching by func_id is only allowed _after_ modprobe +# returns, so that "strong" matches have a higher priority. +SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", ATTR{allow_func_id_match}="1" + +# PCMCIA sockets: +# +# modprobe the pcmcia bus module so that 16-bit PCMCIA devices work +SUBSYSTEM=="pcmcia_socket", \ + RUN+="/lib/udev/load-modules.sh pcmcia" + +# if this is a PCMCIA socket which needs a resource database, +# pcmcia-socket-startup sets it up +SUBSYSTEM=="pcmcia_socket", \ + RUN+="/lib/udev/pcmcia-socket-startup" + +LABEL="pcmciautils_end" |