summaryrefslogtreecommitdiff
path: root/networking/ifupdown.c
diff options
context:
space:
mode:
authorEric Andersen2004-04-12 20:57:17 +0000
committerEric Andersen2004-04-12 20:57:17 +0000
commit238e354b586ca3f7b68e8baeab7444e523493a12 (patch)
tree0d47a52e6062222dd7dd0d5b61eb630cc98282a7 /networking/ifupdown.c
parent87812dc3b07eb4c1f69432133883d2dd5b771705 (diff)
downloadbusybox-238e354b586ca3f7b68e8baeab7444e523493a12.zip
busybox-238e354b586ca3f7b68e8baeab7444e523493a12.tar.gz
Eric Spakman noticed that ifdown' will attempt to run 'ifconfig'
even if built with CONFIG_FEATURE_IFUPDOWN_IP when shutting down a dhcp connection.
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r--networking/ifupdown.c2
1 files changed, 1 insertions, 1 deletions
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)