[PATCH 11/14] nokia,udev: simplify single vendor check

Aleksander Morgado aleksander at aleksander.es
Sat Aug 6 08:44:00 UTC 2016


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

Pushed to git master.

> diff --git a/plugins/nokia/77-mm-nokia-port-types.rules b/plugins/nokia/77-mm-nokia-port-types.rules
> index 4c5340f..e9b594f 100644
> --- a/plugins/nokia/77-mm-nokia-port-types.rules
> +++ b/plugins/nokia/77-mm-nokia-port-types.rules
> @@ -1,12 +1,9 @@
>  # do not edit this file, it will be overwritten on update
>
>  ACTION!="add|change|move", GOTO="mm_nokia_port_types_end"
> +SUBSYSTEMS!="usb", 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"
> -GOTO="mm_nokia_port_types_end"
> -
> -LABEL="mm_nokia_port_types_vendorcheck"
> +ATTRS{idVendor}!="0421", GOTO="mm_nokia_port_types_end"
>
>  # For Nokia Internet Sticks (CS-xx) the modem/PPP port appears to always be USB interface 1
>
> --
> 2.9.0
>



-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list