diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-01-26 19:29:45 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-01-26 19:33:45 +0100 |
commit | 48585c250b68ab2ca192af36b8873c475f73165c (patch) | |
tree | 3691e27502b89d0d72eff66c483a255eaed9be17 /src | |
parent | b7adbf97a560d8c4ae59d151872ed154c7e49822 (diff) |
udev: apply udev rules upon 'move' events as well
Otherwise, we may end up losing the tags we expect if the device gets a 'move'
event just after the initial 'add'.
Diffstat (limited to 'src')
-rw-r--r-- | src/77-mm-pcmcia-device-blacklist.rules | 3 | ||||
-rw-r--r-- | src/77-mm-platform-serial-whitelist.rules | 3 | ||||
-rw-r--r-- | src/77-mm-usb-device-blacklist.rules | 2 | ||||
-rw-r--r-- | src/77-mm-usb-serial-adapters-greylist.rules | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/src/77-mm-pcmcia-device-blacklist.rules b/src/77-mm-pcmcia-device-blacklist.rules index 76259a20..f0f8474f 100644 --- a/src/77-mm-pcmcia-device-blacklist.rules +++ b/src/77-mm-pcmcia-device-blacklist.rules @@ -1,10 +1,9 @@ # do not edit this file, it will be overwritten on update -ACTION!="add|change", GOTO="mm_pcmcia_device_blacklist_end" +ACTION!="add|change|move", GOTO="mm_pcmcia_device_blacklist_end" SUBSYSTEM!="pcmcia", GOTO="mm_pcmcia_device_blacklist_end" # Gemplus Serial Port smartcard adapter ATTRS{prod_id1}=="Gemplus", ATTRS{prod_id2}=="SerialPort", ATTRS{prod_id3}=="GemPC Card", ENV{ID_MM_DEVICE_IGNORE}="1" LABEL="mm_pcmcia_device_blacklist_end" - diff --git a/src/77-mm-platform-serial-whitelist.rules b/src/77-mm-platform-serial-whitelist.rules index b62d0a6e..faf4472b 100644 --- a/src/77-mm-platform-serial-whitelist.rules +++ b/src/77-mm-platform-serial-whitelist.rules @@ -1,6 +1,6 @@ # do not edit this file, it will be overwritten on update -ACTION!="add|change", GOTO="mm_platform_device_whitelist_end" +ACTION!="add|change|move", GOTO="mm_platform_device_whitelist_end" SUBSYSTEM!="platform", GOTO="mm_platform_device_whitelist_end" # Be careful here since many devices connected to platform drivers on PCs @@ -11,4 +11,3 @@ SUBSYSTEM!="platform", GOTO="mm_platform_device_whitelist_end" DRIVERS=="atmel_usart", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1" LABEL="mm_platform_device_whitelist_end" - diff --git a/src/77-mm-usb-device-blacklist.rules b/src/77-mm-usb-device-blacklist.rules index 4a927377..044d80f7 100644 --- a/src/77-mm-usb-device-blacklist.rules +++ b/src/77-mm-usb-device-blacklist.rules @@ -1,6 +1,6 @@ # do not edit this file, it will be overwritten on update -ACTION!="add|change", GOTO="mm_usb_device_blacklist_end" +ACTION!="add|change|move", GOTO="mm_usb_device_blacklist_end" SUBSYSTEM!="usb", GOTO="mm_usb_device_blacklist_end" ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_device_blacklist_end" diff --git a/src/77-mm-usb-serial-adapters-greylist.rules b/src/77-mm-usb-serial-adapters-greylist.rules index 814ff0ba..3f3e090e 100644 --- a/src/77-mm-usb-serial-adapters-greylist.rules +++ b/src/77-mm-usb-serial-adapters-greylist.rules @@ -1,6 +1,6 @@ # do not edit this file, it will be overwritten on update -ACTION!="add|change", GOTO="mm_usb_serial_adapters_greylist_end" +ACTION!="add|change|move", GOTO="mm_usb_serial_adapters_greylist_end" SUBSYSTEM!="usb", GOTO="mm_usb_serial_adapters_greylist_end" ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_serial_adapters_greylist_end" |