aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-19 09:23:13 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-19 09:23:13 +0000
commit83bcba26c01d945d1964d6d5de715a2356a858cf (patch)
treefcb0783c9280d280bbd82a1e3f6b4d923386c42e
parenta0d395eac9c7f8c6db288df5b345146a7da4977b (diff)
downloadbusybox-83bcba26c01d945d1964d6d5de715a2356a858cf.tar.gz
dont use the -i option of 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 03eb0a5a7..b0f526770 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -460,7 +460,7 @@ static int dhcp_up(interface_defn *ifd, execfn *exec)
static int dhcp_down(interface_defn *ifd, execfn *exec)
{
if (execable("/sbin/dhclient")) {
- if (!execute("cat /var/run/dhclient.%iface%.pid | xargs -i kill -TERM {}", ifd, exec)) {
+ if (!execute("cat /var/run/dhclient.%iface%.pid | xargs kill", ifd, exec)) {
return(0);
}
} else if (execable("/sbin/pump")) {
@@ -468,7 +468,7 @@ static int dhcp_down(interface_defn *ifd, execfn *exec)
return(0);
}
} else if (execable("/sbin/udhcpc")) {
- if (!execute("cat /var/run/udhcpc.%iface%.pid | xargs -i kill -TERM {}", ifd, exec)) {
+ if (!execute("cat /var/run/udhcpc.%iface%.pid | xargs kill", ifd, exec)) {
return(0);
}
} else if (execable("/sbin/dhcpcd")) {