Skip to contentSkip to conversation

ifupdown problems

DISCUSSION Grahame Jordan 1 participant 1 message May 2, 2007

lore
Share & tools
lore
#0 lore raw

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel