* ifupdown problems
@ 2007-05-02 11:29 Grahame Jordan
0 siblings, 0 replies; only message in thread
From: Grahame Jordan @ 2007-05-02 11:29 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-02 11:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-02 11:29 ifupdown problems Grahame Jordan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).