diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-07-23 01:10:22 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-07-23 01:10:22 +0000 |
commit | 4d405bbc05f79ac31d979ec26a180d3ee9236a82 (patch) | |
tree | b11c6586440c1245d322f56080edf17539a7a4f0 /networking | |
parent | 5529b7bb874396af53552cf12e3e354693350ba2 (diff) | |
download | busybox-w32-4d405bbc05f79ac31d979ec26a180d3ee9236a82.tar.gz busybox-w32-4d405bbc05f79ac31d979ec26a180d3ee9236a82.tar.bz2 busybox-w32-4d405bbc05f79ac31d979ec26a180d3ee9236a82.zip |
Patch from Manousaridis Angelos to bring dhclient down more elegently
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 9daa0f513..276ca5f22 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -564,7 +564,8 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | |||
564 | { | 564 | { |
565 | int result = 0; | 565 | int result = 0; |
566 | if (execable("/sbin/udhcpc")) { | 566 | if (execable("/sbin/udhcpc")) { |
567 | execute("kill -9 `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 | } else if (execable("/sbin/pump")) { | 569 | } else if (execable("/sbin/pump")) { |
569 | result = execute("pump -i %iface% -k", ifd, exec); | 570 | result = execute("pump -i %iface% -k", ifd, exec); |
570 | } else if (execable("/sbin/dhclient")) { | 571 | } else if (execable("/sbin/dhclient")) { |