Matching USB modems on serial.port

Adrian Cox adrian at humboldt.co.uk
Thu Jan 29 05:11:21 PST 2009


----- "Danny Kukawka" <danny.kukawka at web.de> wrote:

> On Donnerstag, 29. Januar 2009, Adrian Cox wrote:

> > The (redacted) 
> > fdi file is here:
> >
> [...]
> > 	    <!-- Hide these ports from the Ubuntu Intrepid NetworkManager
> -->
> >             <match key="@info.parent:usb.interface.number" int="3">
> > 	      <merge key="modem.command_sets" type="strlist"></merge>
> >             </match>
> >             <match key="@info.parent:usb.interface.number" int="5">
> > 	      <merge key="modem.command_sets" type="strlist"></merge>
> >             </match>
> >             <match key="@info.parent:usb.interface.number" int="7">
> > 	      <merge key="modem.command_sets" type="strlist"></merge>
> 
> Please don't do such things. The modem.command_sets proterty should be
> used 
> only if there are values added to the list. Don't add empty
> properties.

Can you suggest another way to hide the ports? The NetworkManager that ships in Ubuntu Intrepid will crash if it sees those ports as being modem ports. The crash is probably due to the modem probing patch that Ubuntu added in their version of NetworkManager, but we'd much rather put an fdi file on the driver CD than a fixed NetworkManager for each architecture.

Even if we avoid the crash, we still have to work around the Ubuntu NetworkManager probing. If we don't stop it, it will create an entry in the network manager applet for each individual serial port, even though they all talk to the same radio.

-- 
Adrian Cox <adrian at humboldt.co.uk>
Office: +44-1865-751723
Mobile: +44-7979-766325


More information about the hal mailing list