dont use the -i option of xargs
This commit is contained in:
parent
a0d395eac9
commit
83bcba26c0
@ -460,7 +460,7 @@ static int dhcp_up(interface_defn *ifd, execfn *exec)
|
|||||||
static int dhcp_down(interface_defn *ifd, execfn *exec)
|
static int dhcp_down(interface_defn *ifd, execfn *exec)
|
||||||
{
|
{
|
||||||
if (execable("/sbin/dhclient")) {
|
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);
|
return(0);
|
||||||
}
|
}
|
||||||
} else if (execable("/sbin/pump")) {
|
} else if (execable("/sbin/pump")) {
|
||||||
@ -468,7 +468,7 @@ static int dhcp_down(interface_defn *ifd, execfn *exec)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
} else if (execable("/sbin/udhcpc")) {
|
} 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);
|
return(0);
|
||||||
}
|
}
|
||||||
} else if (execable("/sbin/dhcpcd")) {
|
} else if (execable("/sbin/dhcpcd")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user