From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jar" Date: Thu, 04 Dec 2008 14:22:33 +0000 Subject: Re: Udev rule for HSDPA modem Message-Id: <4c3057119fbb489becadb5f2528c88e2.squirrel@netlandzone.dyndns.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org >> I can't test this right now, but doesn't quite understand what this will do. Does >> this solve the problem where the ttyUSBx interface changes and make it always be >> the >> same? >> >> If I have e.g. ttyUSB1,ttyUSB2 and ttyUSB3 devices, what will be the symlink to >> ttyUSB1 (used for pppd), which only interests? > > If you have different devices, all links in /dev/serial/by-id/ will > stay the same, regardless of the order, or the USB hub/port they are > plugged in. If you have identical devices, without any serial number, > only the controller/hub/port number can be used to distinguish them. > The /dev/serial/by-id/ links will overwrite each other for identical > devices, and /dev/serial/by-path/ must be used. > >> And how about the other thing, how to >> trigger some wvdial connect script via udev at the same time the >> ttyUSB1 thing comes up? > > You can match on properties of the device, or even the link name > itself with SYMLINK="serial/by-..." with udev rules, that come after > the 60-*.rules. These rules can trigger anything you need. > > Kay OK, thanks, I will try these when I have time. My udev is version udev-118-1.fc8, any idea if this works with it? -- Best Regards, Jar