From: Eric Andersen Date: Mon, 12 Apr 2004 20:57:17 +0000 (-0000) Subject: Eric Spakman noticed that ifdown' will attempt to run 'ifconfig' X-Git-Tag: 1_00_pre10~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=238e354b586ca3f7b68e8baeab7444e523493a12;p=platform%2Fupstream%2Fbusybox.git Eric Spakman noticed that ifdown' will attempt to run 'ifconfig' even if built with CONFIG_FEATURE_IFUPDOWN_IP when shutting down a dhcp connection. --- diff --git a/networking/ifupdown.c b/networking/ifupdown.c index c34e2b9..de65d29 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -557,7 +557,7 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) } 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)