[BusyBox-cvs] busybox/networking ifupdown.c,1.36,1.37
Erik Andersen
andersen at busybox.net
Mon Apr 12 20:57:19 UTC 2004
Update of /var/cvs/busybox/networking
In directory nail:/tmp/cvs-serv18951/networking
Modified Files:
ifupdown.c
Log Message:
Eric Spakman noticed that ifdown' will attempt to run 'ifconfig'
even if built with CONFIG_FEATURE_IFUPDOWN_IP when shutting down
a dhcp connection.
Index: ifupdown.c
===================================================================
RCS file: /var/cvs/busybox/networking/ifupdown.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- a/ifupdown.c 15 Mar 2004 08:28:48 -0000 1.36
+++ b/ifupdown.c 12 Apr 2004 20:57:17 -0000 1.37
@@ -557,7 +557,7 @@
} else if (execable("/sbin/dhcpcd")) {
result = execute("dhcpcd -k %iface%", ifd, exec);
}
- return (result || execute("ifconfig %iface% down", ifd, exec));
+ return (result || bootp_down(ifd, exec));
}
static int bootp_up(struct interface_defn_t *ifd, execfn *exec)
More information about the busybox-cvs
mailing list