diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-12 20:57:17 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-12 20:57:17 +0000 |
commit | 238e354b586ca3f7b68e8baeab7444e523493a12 (patch) | |
tree | 0d47a52e6062222dd7dd0d5b61eb630cc98282a7 | |
parent | 87812dc3b07eb4c1f69432133883d2dd5b771705 (diff) | |
download | busybox-w32-238e354b586ca3f7b68e8baeab7444e523493a12.tar.gz busybox-w32-238e354b586ca3f7b68e8baeab7444e523493a12.tar.bz2 busybox-w32-238e354b586ca3f7b68e8baeab7444e523493a12.zip |
Eric Spakman noticed that ifdown' will attempt to run 'ifconfig'
even if built with CONFIG_FEATURE_IFUPDOWN_IP when shutting down
a dhcp connection.
-rw-r--r-- | networking/ifupdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index c34e2b955..de65d29f3 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -557,7 +557,7 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | |||
557 | } else if (execable("/sbin/dhcpcd")) { | 557 | } else if (execable("/sbin/dhcpcd")) { |
558 | result = execute("dhcpcd -k %iface%", ifd, exec); | 558 | result = execute("dhcpcd -k %iface%", ifd, exec); |
559 | } | 559 | } |
560 | return (result || execute("ifconfig %iface% down", ifd, exec)); | 560 | return (result || bootp_down(ifd, exec)); |
561 | } | 561 | } |
562 | 562 | ||
563 | static int bootp_up(struct interface_defn_t *ifd, execfn *exec) | 563 | static int bootp_up(struct interface_defn_t *ifd, execfn *exec) |