From: Shawn Rutledge Date: Wed, 10 Nov 2004 00:51:22 +0000 Subject: Hotplug USB ethernet devices Message-Id: <20041110005122.41087.qmail@web52802.mail.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On my Gentoo systems /etc/hotplug/usb.agent is called when a USB gadget ethernet-emulation device (such as a Zaurus, a Linux smartphone or a Gumstix) is attached. Then the usb0 network interface appears, and /etc/hotplug/net.agent is called. The thing is, different devices have different means to get an address; the Zaurus is hard-coded, but the Gumstix does a DHCP query. For the Zaurus, I want the host machine's USB address for usb0 to become 192.168.129.200, and for other devices it should be different. So what I need is a way for either the net.agent, or the /etc/init.d/net.usb0 which is called afterwards, to get the USB identification information and make a choice accordingly which address to use (and in the case of devices which want to do DHCP, to restart the DHCP server because it doesn't notice the appearance of usb0 and isn't listening until I restart it). I see that the vendor and product variables aren't passed through this far. Is there a way to get this info? ==. _______ Shawn T. Rutledge / KB7PWD ecloud@bigfoot.com (_ | |_) http://ecloud.org/ kb7pwd@kb7pwd.ampr.org __) | | \______________________________________________ ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel