[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOLVED: Assigning static device names for USB devices



On Mon, 17 Oct 2005, Alexander Yurchenko wrote:

On Mon, Oct 17, 2005 at 09:29:37AM +1000, Damien Miller wrote:

You could try making symlinks using hotplugd(8) attach and detach scripts, but I'm not sure they get called for USB printers (haven't tried)

of course they will be called. add usbdevs | grep command to the attach script to make a proper symlink.

Hotplugd and usbdevs were the right tools for this job.

For the archives here's how the dynamically updating symlink can be done for USB device: printers fall into class 0 (generic) and with the second parameter to the hotplugd's attach script one is able to get the device's name and model by using usbdevs -d.

Thanks for all who responded.

--
Antti Harri



Visit your host, monkey.org