Devuan bug report logs - #333
usb-modeswitch no longer creates /dev/gsmmodem symlink

Package: usb-modeswitch-data; Maintainer for usb-modeswitch-data is (unknown); Source for usb-modeswitch-data is src:usb-modeswitch-data.

Reported by: Guenther Brunthaler <gb_about_gnu@gmx.net>

Date: Thu, 13 Jun 2019 21:03:02 UTC

Severity: normal

Done: Svante Signell <svante.signell@gmail.com>

Full log


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

Received: (at submit) by bugs.devuan.org; 13 Jun 2019 21:00:02 +0000
Return-Path: <gb_about_gnu@gmx.net>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 13 Jun 2019 23:00:02 +0200 (CEST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.21])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id EA724F60B5F
	for <submit@bugs.devuan.org>; Thu, 13 Jun 2019 22:53:57 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="f6X6xY0U";
	dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
	s=badeba3b8450; t=1560459237;
	bh=eMwU5Zmht0v0s4iYuo91DMn9alub9oqjPUQknGX/MFM=;
	h=X-UI-Sender-Class:To:From:Subject:Date;
	b=f6X6xY0U0Ia+6dpgQ8OdQZlMxgw1c7UK14Dqv7gqQNWw+j37IcBI6Dzg99OXXoSer
	 b8+u+dvNUlLhvcYwf6jjNYVVU6RTC9JrfTvvuN3uQPvNv2xqmRPHYkFUioxeiNxmAv
	 ACPaEFY9ZQj8ry7eMTIxNDmeq3yQ94Ic32lmdjDc=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [10.157.146.248] ([91.141.2.42]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MhD2Y-1iEPvK2v7C-00eMHc for
 <submit@bugs.devuan.org>; Thu, 13 Jun 2019 22:53:56 +0200
To: submit@bugs.devuan.org
From: Guenther Brunthaler <gb_about_gnu@gmx.net>
Subject: usb-modeswitch no longer creates /dev/gsmmodem symlink
Message-ID: <843f52bb-ffbf-9129-b5fb-3ee5834d99f5@gmx.net>
Date: Thu, 13 Jun 2019 22:53:54 +0200
User-Agent: Mozilla/5.0 (X11; Linux armv7l; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: de-AT
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:dbJUOwoGd6YfTogfzvo8PaEa+dH07v173x025b0cEEuD/o63UJd
 DZdRY1SOtkJGLF16XGL2+/sHDwkBAZIsk9C+hIdmr2INi3mgTcTOIHmZRgWf3u97lsJCzvY
 jUVBoRLnfEgia/LZlseXl27IktWh2PHM5ZaImqDJiWfGxLMm14nuWbI2W7fBEiENkKAfeiK
 6QIwfFxtuetnjNu5Zfo8Q==
X-UI-Out-Filterresults: notjunk:1;V03:K0:S+vTA4evkPo=:/EUNYwE9Qb/Lo92PUX1BvX
 hJcJVy4gs5MS+DHLk3mz+F2DDQSqknYacTpRyo8/M7jF0jMH39QALMKPsq7F5/aOKcJQCRZa4
 gCVtCJ5bqMo80MNIDH+x96F1VqR+mmJ1rgtmI2SRBD53HCvKDt8zPwuK7uYUWpYpJW/wXx26f
 lgvGkV33tcJhrkR6W0Ig+jPa44R9IuhZ/l3eCY9vAq1XTbUeLFTEi9ayuqj0NnYinAkR8cTQ2
 8ybpi4iJ35JnmHwa0BZDGAE13PWDK/eN20YlY2wGZ8iYXI8ZYdw9PwHD8tC+3ATxakJfxfzQq
 bnQzuSIsaZKlo+8imB1BAT+vWFpbBT5g7tLDMPKX26Q+vM1wwvTY+9tWjWESKE0fja4wfwgSJ
 dBc2DSVq0a4Jw3Xtl+S6q3xS3hMm3eBIrZYFR0XkDvsd4P74WZbjsPW7HgHYnwk92ifTINLKO
 BV7kSm4p0X8S071sVhBUjQSoRyMjIGKE+Yawr+BF3lf/q78DbkqDwYC/Qv7S2jYCNmzCFa0bg
 tYbbBCRChMETzQ4QGcQ0/o6n7xxjPMEEkmHfqVhPzXs+/StcguR9fw1Pi4auNDNKmRw2zLMxV
 gkcSMa1YiwzXP0aZyV1wPjA/Vovbf2gUtqcxcfi5aE19XpXAdDD7ZrbAqlfBe4Eh86GPT0Kaw
 aOCYj+dkRsoffI4xs/ZVnfPaQuqaK+er2Lwc0VoOaKadTlUG7mlWDZhco2gSOaS6joxwNbmmC
 sx9T0NvNNaB30b/StB3B89C1Krgv1ylzRK/0ywFx+sNTvB6P3iECa20nwZQMsWWhmBWP/fwlG
 ntqOWmX6gU202aOF+P/p5EjFeNJnZVRu5Ab4kLh/1LfDr76rCCt7jDailTCw1LO1Rp3Z34g7e
 2JQ787lN74QMQJV97tAKC0qZU5AYOp/IZjGDIymytJt75gc/2EBBLbteBTBiCSuwT9EJK1vNi
 K6sWRXI51Z5M+KfF2MpvBqj9QvdFU+7Lw7Q1pJP26z5yIKuMGGPut
X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
Package: usb-modeswitch-data
Version: 20170120-1

The /dev/gsmmodem symlink is very useful as the device specified in
/etc/ppp/peers/* configurations, because it works no matter what modem
has actually been connected to the computer.

The eudev-rule from the the beforementioned package invokes the
usb_modeswitch binary with the --symlink-name which used to create the
/dev/gsmmodem symlink:

$ grep -A2 gsmmodem /lib/udev/rules.d/40-usb_modeswitch.rules
# Adds a symlink "gsmmodem[n]" to the lowest ttyUSB port with interrupt
# transfer; checked against a list of known modems, or else no action
KERNEL=="ttyUSB*", ATTRS{bNumConfigurations}=="*",
PROGRAM="usb_modeswitch --symlink-name %p %s{idVendor} %s{idProduct}
%E{PRODUCT}", SYMLINK+="%c"

The binary ignores the option, and hence no symlink is created.

I think the udev rule is incorrect and should invoke the
/lib/udev/usb_modeswitch shell script rather than the
/usr/sbin/usb_modeswitch binary, because only the shell script supports
the --symlink-name option.

This is at least the case in the current version 2.5.0+repack0-1 of the
usb-modeswitch package.

I am using Devuan GNU/Linux 2.0 (ascii)
on branch stretch
with kernel
Linux xeeepc 4.9.0-9-686 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13)
i686 GNU/Linux


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Thu Mar 28 20:53:13 2024;