* Bug#95354: net.agent and ifdown
@ 2001-04-27 17:56 Fumitoshi UKAI
2001-04-28 16:08 ` David Brownell
0 siblings, 1 reply; 2+ messages in thread
From: Fumitoshi UKAI @ 2001-04-27 17:56 UTC (permalink / raw)
To: linux-hotplug
Hi,
I'm maintainer of hotplug deb package, and got the bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug•354&repeatmerged=yes
I'm not sure, but would this patch solve this problem?
--- hotplug-2001-04-24.orig/etc/hotplug/net.agent
+++ hotplug-2001-04-24/etc/hotplug/net.agent
@@ -52,6 +52,16 @@
mesg $1 $ACTION event not handled
;;
+unregister)
+ if [ -x /sbin/ifdown ]; then
+ if [ "$DEBUG" != "" ]; then
+ mesg invoke ifdown $INTERFACE
+ fi
+ exec /sbin/ifdown $INTERFACE
+ fi
+ mesg $1 $ACTION event not handled
+ ;;
+
*)
if [ "$DEBUG" != "" ]; then
mesg NET $ACTION event not supported
Regards,
Fumitoshi UKAI
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug#95354: net.agent and ifdown
2001-04-27 17:56 Bug#95354: net.agent and ifdown Fumitoshi UKAI
@ 2001-04-28 16:08 ` David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2001-04-28 16:08 UTC (permalink / raw)
To: linux-hotplug
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug•354&repeatmerged=yes
Hmm, interesting ... Debian "ifup" maintains non-kernel state,
trying to track (augment?) kernel state. I'd suspect that's likely
to be a bit fragile (as in this bug).
> I'm not sure, but would this patch solve this problem?
The interface is not listed in the kernel state any more,
so "ifdown $INTERFACE" will fail at least on RH7
(which I just checked). Not that the network hotplug
code cares about agent failure status code now, but I'd
not return with that "ifdown" failure status. Other than
that, it looks like it's worth trying.
The "hot unplug" paths deserve more attention than they've
gotten so far. That's not just in relation to the module
unloading problem that's gotten discussed a bit.
- Dave
> --- hotplug-2001-04-24.orig/etc/hotplug/net.agent
> +++ hotplug-2001-04-24/etc/hotplug/net.agent
> @@ -52,6 +52,16 @@
> mesg $1 $ACTION event not handled
> ;;
>
> +unregister)
> + if [ -x /sbin/ifdown ]; then
> + if [ "$DEBUG" != "" ]; then
> + mesg invoke ifdown $INTERFACE
> + fi
> + exec /sbin/ifdown $INTERFACE
> + fi
> + mesg $1 $ACTION event not handled
> + ;;
> +
> *)
> if [ "$DEBUG" != "" ]; then
> mesg NET $ACTION event not supported
>
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-28 16:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-27 17:56 Bug#95354: net.agent and ifdown Fumitoshi UKAI
2001-04-28 16:08 ` David Brownell
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).