[PATCH] make udev rules match SUBSYSTEM rather than setting it
Colin Watson
cjwatson at ubuntu.com
Wed Nov 23 06:54:01 EST 2005
Writing 'SUBSYSTEM="pcmcia_socket"' in a udev rule *sets* SUBSYSTEM to
"pcmcia_socket", thereby breaking all rules handled after it. The
following patch changes pcmciautils' udev rules to match SUBSYSTEM
instead.
--- udev/60-pcmcia.rules
+++ udev/60-pcmcia.rules
@@ -16,8 +16,8 @@
# PCMCIA sockets:
#
# modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
-SUBSYSTEM="pcmcia_socket" RUN+="/sbin/modprobe pcmcia"
+SUBSYSTEM=="pcmcia_socket" RUN+="/sbin/modprobe 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"
+SUBSYSTEM=="pcmcia_socket" RUN+="/lib/udev/pcmcia-socket-startup"
--- udev/60-pcmcia.rules.static
+++ udev/60-pcmcia.rules.static
@@ -16,8 +16,8 @@
# PCMCIA sockets:
#
# modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
-SUBSYSTEM="pcmcia_socket" RUN+="/sbin/modprobe pcmcia"
+SUBSYSTEM=="pcmcia_socket" RUN+="/sbin/modprobe 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"
+#SUBSYSTEM=="pcmcia_socket" RUN+="/lib/udev/pcmcia-socket-startup"
Thanks,
--
Colin Watson [cjwatson at ubuntu.com]
More information about the linux-pcmcia
mailing list