[PATCH 05/14] haier,udev: simplify single vendor check

Aleksander Morgado aleksander at aleksander.es
Sat Aug 6 08:42:33 UTC 2016


On Thu, Jul 28, 2016 at 12:13 AM, Aleksander Morgado
<aleksander at aleksander.es> wrote:
> ---
>  plugins/haier/77-mm-haier-port-types.rules | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
>

Pushed to git master.

> diff --git a/plugins/haier/77-mm-haier-port-types.rules b/plugins/haier/77-mm-haier-port-types.rules
> index 1a1ed80..41db317 100644
> --- a/plugins/haier/77-mm-haier-port-types.rules
> +++ b/plugins/haier/77-mm-haier-port-types.rules
> @@ -1,12 +1,9 @@
>  # do not edit this file, it will be overwritten on update
>
>  ACTION!="add|change|move", GOTO="mm_haier_port_types_end"
> +SUBSYSTEMS!="usb", GOTO="mm_haier_port_types_end"
>  SUBSYSTEM!="tty", GOTO="mm_haier_port_types_end"
> -
> -SUBSYSTEMS=="usb", ATTRS{idVendor}=="201e", GOTO="mm_haier_port_types_vendorcheck"
> -GOTO="mm_haier_port_types_end"
> -
> -LABEL="mm_haier_port_types_vendorcheck"
> +ATTRS{idVendor}!="201e", GOTO="mm_haier_port_types_end"
>
>  # Haier CE81B
>  ATTRS{idVendor}=="201e", ATTRS{idProduct}=="10f8", ATTRS{bInterfaceNumber}=="03", ENV{ID_MM_HAIER_PORT_TYPE_MODEM}="1"
> --
> 2.9.0
>



-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list