From: Grahame Jordan <gbj@theforce.com.au>
To: linux-hotplug@vger.kernel.org
Subject: ifupdown problems
Date: Wed, 02 May 2007 11:29:05 +0000 [thread overview]
Message-ID: <46387601.2000901@theforce.com.au> (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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
reply other threads:[~2007-05-02 11:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46387601.2000901@theforce.com.au \
--to=gbj@theforce.com.au \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).