diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-07-26 12:11:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-07-26 12:11:32 +0000 |
commit | b2a300590d1e061658be5aa4f74a437485b36a55 (patch) | |
tree | 9d4745b7528d677e7dc5979c0592a8253fb3908b /networking | |
parent | 8f38782a6e797c4b5c322e0b6a4ec6d369822c6a (diff) | |
download | busybox-w32-b2a300590d1e061658be5aa4f74a437485b36a55.tar.gz busybox-w32-b2a300590d1e061658be5aa4f74a437485b36a55.tar.bz2 busybox-w32-b2a300590d1e061658be5aa4f74a437485b36a55.zip |
bother. unrevert my fix.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifupdown.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 276ca5f22..ff6e58acd 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -565,7 +565,7 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | |||
565 | int result = 0; | 565 | int result = 0; |
566 | if (execable("/sbin/udhcpc")) { | 566 | if (execable("/sbin/udhcpc")) { |
567 | execute("kill -USR2 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); | 567 | execute("kill -USR2 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); |
568 | execute("kill -TERM `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); | 568 | execute("kill -9 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); |
569 | } else if (execable("/sbin/pump")) { | 569 | } else if (execable("/sbin/pump")) { |
570 | result = execute("pump -i %iface% -k", ifd, exec); | 570 | result = execute("pump -i %iface% -k", ifd, exec); |
571 | } else if (execable("/sbin/dhclient")) { | 571 | } else if (execable("/sbin/dhclient")) { |
@@ -573,6 +573,7 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | |||
573 | } else if (execable("/sbin/dhcpcd")) { | 573 | } else if (execable("/sbin/dhcpcd")) { |
574 | result = execute("dhcpcd -k %iface%", ifd, exec); | 574 | result = execute("dhcpcd -k %iface%", ifd, exec); |
575 | } | 575 | } |
576 | static_down(ifd, exec) | ||
576 | return (result || bootp_down(ifd, exec)); | 577 | return (result || bootp_down(ifd, exec)); |
577 | } | 578 | } |
578 | 579 | ||