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:
@@ -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"
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user