projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87812dc
)
Eric Spakman noticed that ifdown' will attempt to run 'ifconfig'
author
Eric Andersen
<andersen@codepoet.org>
Mon, 12 Apr 2004 20:57:17 +0000
(20:57 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Mon, 12 Apr 2004 20:57:17 +0000
(20:57 -0000)
even if built with CONFIG_FEATURE_IFUPDOWN_IP when shutting down
a dhcp connection.
networking/ifupdown.c
patch
|
blob
|
history
diff --git
a/networking/ifupdown.c
b/networking/ifupdown.c
index c34e2b955bf8dfbd58b2c0eceff2c7d2d50b38e2..de65d29f3a0dfc66d749bbc13145146315df020c 100644
(file)
--- 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)