From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grahame Jordan Date: Wed, 02 May 2007 11:29:05 +0000 Subject: ifupdown problems Message-Id: <46387601.2000901@theforce.com.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, I am using Kubuntu 7.4 but the same happens on Debian etch. When I plug in my usb cable for my gumstix thing the usb interface comes up but it does not even attempt to get the dhcp from the gumstix. The problem seems to be that the interface is up before it gets to ifup and therefore ifup thinks the interface is already up but it's not. eg: ifup usb0 ifup: interface usb0 already configured In my old sarge interfaces file I had this: mapping hotplug script grep map usb0 iface usb0 inet dhcp But this does not work on Kubuntu 7.4 for "hotplug", because in 85-ifupdown.rules we have: ACTION="add", RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow auto $env{INTERFACE}" Which will only ifup the auto sections of interfaces. So I changed it to --allow hotplug --force. ACTION="add", RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow hotplug --force $env{INTERFACE}" The --force is added to "solve" the issue with the dhcp bit not working. So I am guessing there is a bug in the ifup -- command Other issue: On the gumstix device I have usb and bluetooth. When the usb is plugged in the bluetooth is disabled on the gumstix. However the Linux box does not know that the bluetooth has actually gone downand still holds on to the dhcp while the usb is trying to dhcp the same device. I have written some ugly scripts to /etc/init.d/bluetooth stop etc but this cannot work in general practice. Anyway I would expect the bluetooth layer to notify ifup/ifdown if hte link goes down. How is that supposed to happen? In Debian Sarge/Kubunto 6.? this happened. Thanks Grahame Jordan ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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