aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-19 09:58:56 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-19 09:58:56 +0000
commitd1431073d100bc0dbeafaacc161f11f21551eae6 (patch)
tree5f387811da28a0e5dc65024e8087655a5547d389
parent83bcba26c01d945d1964d6d5de715a2356a858cf (diff)
downloadbusybox-w32-d1431073d100bc0dbeafaacc161f11f21551eae6.tar.gz
busybox-w32-d1431073d100bc0dbeafaacc161f11f21551eae6.tar.bz2
busybox-w32-d1431073d100bc0dbeafaacc161f11f21551eae6.zip
Dont use xargs
-rw-r--r--networking/ifupdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index b0f526770..e4bfc3eb4 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -460,7 +460,7 @@ static int dhcp_up(interface_defn *ifd, execfn *exec)
460static int dhcp_down(interface_defn *ifd, execfn *exec) 460static int dhcp_down(interface_defn *ifd, execfn *exec)
461{ 461{
462 if (execable("/sbin/dhclient")) { 462 if (execable("/sbin/dhclient")) {
463 if (!execute("cat /var/run/dhclient.%iface%.pid | xargs kill", ifd, exec)) { 463 if (!execute("kill -9 `cat /var/run/udhcpc.%iface%.pid`", ifd, exec)) {
464 return(0); 464 return(0);
465 } 465 }
466 } else if (execable("/sbin/pump")) { 466 } else if (execable("/sbin/pump")) {
@@ -468,7 +468,7 @@ static int dhcp_down(interface_defn *ifd, execfn *exec)
468 return(0); 468 return(0);
469 } 469 }
470 } else if (execable("/sbin/udhcpc")) { 470 } else if (execable("/sbin/udhcpc")) {
471 if (!execute("cat /var/run/udhcpc.%iface%.pid | xargs kill", ifd, exec)) { 471 if (!execute("kill -9 `cat /var/run/udhcpc.%iface%.pid`", ifd, exec)) {
472 return(0); 472 return(0);
473 } 473 }
474 } else if (execable("/sbin/dhcpcd")) { 474 } else if (execable("/sbin/dhcpcd")) {