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'.
This commit is contained in:
Aleksander Morgado
2014-01-26 19:29:45 +01:00
parent b7adbf97a5
commit 48585c250b
13 changed files with 13 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
# do not edit this file, it will be overwritten on update # do not edit this file, it will be overwritten on update
ACTION!="add|change", GOTO="mm_huawei_port_types_end" ACTION!="add|change|move", GOTO="mm_huawei_port_types_end"
ENV{ID_VENDOR_ID}!="12d1", GOTO="mm_huawei_port_types_end" ENV{ID_VENDOR_ID}!="12d1", GOTO="mm_huawei_port_types_end"

View File

@@ -13,7 +13,7 @@
# cannot be used for PPP. # cannot be used for PPP.
ACTION!="add|change", GOTO="mm_longcheer_port_types_end" ACTION!="add|change|move", GOTO="mm_longcheer_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_longcheer_port_types_end" SUBSYSTEM!="tty", GOTO="mm_longcheer_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c9e", GOTO="mm_longcheer_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c9e", GOTO="mm_longcheer_vendorcheck"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # do not edit this file, it will be overwritten on update
ACTION!="add|change", GOTO="mm_mbm_end" ACTION!="add|change|move", GOTO="mm_mbm_end"
SUBSYSTEMS=="usb", GOTO="mm_mbm_check" SUBSYSTEMS=="usb", GOTO="mm_mbm_check"
GOTO="mm_mbm_end" GOTO="mm_mbm_end"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # do not edit this file, it will be overwritten on update
ACTION!="add|change", GOTO="mm_mtk_port_types_end" ACTION!="add|change|move", GOTO="mm_mtk_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0e8d", GOTO="mm_mtk_port_types_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0e8d", GOTO="mm_mtk_port_types_vendorcheck"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2001", GOTO="mm_dlink_port_types_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="2001", GOTO="mm_dlink_port_types_vendorcheck"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # do not edit this file, it will be overwritten on update
ACTION!="add|change", GOTO="mm_nokia_port_types_end" ACTION!="add|change|move", GOTO="mm_nokia_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_nokia_port_types_end" SUBSYSTEM!="tty", GOTO="mm_nokia_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0421", GOTO="mm_nokia_port_types_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0421", GOTO="mm_nokia_port_types_vendorcheck"

View File

@@ -10,7 +10,7 @@
# *ser.inf lists the aux ports that may be used for PPP. # *ser.inf lists the aux ports that may be used for PPP.
ACTION!="add|change", GOTO="mm_simtech_port_types_end" ACTION!="add|change|move", GOTO="mm_simtech_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_simtech_port_types_end" SUBSYSTEM!="tty", GOTO="mm_simtech_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1e0e", GOTO="mm_alink_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="1e0e", GOTO="mm_alink_vendorcheck"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # do not edit this file, it will be overwritten on update
ACTION!="add|change", GOTO="mm_telit_port_types_end" ACTION!="add|change|move", GOTO="mm_telit_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_telit_port_types_end" SUBSYSTEM!="tty", GOTO="mm_telit_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bc7", GOTO="mm_telit_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bc7", GOTO="mm_telit_vendorcheck"

View File

@@ -8,7 +8,7 @@
# aux ports that may be either AT-capable or not but cannot be used for PPP. # aux ports that may be either AT-capable or not but cannot be used for PPP.
ACTION!="add|change", GOTO="mm_x22x_port_types_end" ACTION!="add|change|move", GOTO="mm_x22x_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_x22x_port_types_end" SUBSYSTEM!="tty", GOTO="mm_x22x_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bbb", GOTO="mm_x22x_generic_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bbb", GOTO="mm_x22x_generic_vendorcheck"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # do not edit this file, it will be overwritten on update
ACTION!="add|change", GOTO="mm_zte_port_types_end" ACTION!="add|change|move", GOTO="mm_zte_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_zte_port_types_end" SUBSYSTEM!="tty", GOTO="mm_zte_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="19d2", GOTO="mm_zte_port_types_vendorcheck" SUBSYSTEMS=="usb", ATTRS{idVendor}=="19d2", GOTO="mm_zte_port_types_vendorcheck"

View File

@@ -1,10 +1,9 @@
# do not edit this file, it will be overwritten on update # 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" SUBSYSTEM!="pcmcia", GOTO="mm_pcmcia_device_blacklist_end"
# Gemplus Serial Port smartcard adapter # Gemplus Serial Port smartcard adapter
ATTRS{prod_id1}=="Gemplus", ATTRS{prod_id2}=="SerialPort", ATTRS{prod_id3}=="GemPC Card", ENV{ID_MM_DEVICE_IGNORE}="1" 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" LABEL="mm_pcmcia_device_blacklist_end"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # 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" SUBSYSTEM!="platform", GOTO="mm_platform_device_whitelist_end"
# Be careful here since many devices connected to platform drivers on PCs # 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" DRIVERS=="atmel_usart", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
LABEL="mm_platform_device_whitelist_end" LABEL="mm_platform_device_whitelist_end"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # 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" SUBSYSTEM!="usb", GOTO="mm_usb_device_blacklist_end"
ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_device_blacklist_end" ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_device_blacklist_end"

View File

@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update # 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" SUBSYSTEM!="usb", GOTO="mm_usb_serial_adapters_greylist_end"
ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_serial_adapters_greylist_end" ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_serial_adapters_greylist_end"