static int dhcp_down(interface_defn *ifd, execfn *exec)
{
if (execable("/sbin/dhclient")) {
- if (!execute("cat /var/run/dhclient.%iface%.pid | xargs kill", ifd, exec)) {
+ if (!execute("kill -9 `cat /var/run/udhcpc.%iface%.pid`", ifd, exec)) {
return(0);
}
} else if (execable("/sbin/pump")) {
return(0);
}
} else if (execable("/sbin/udhcpc")) {
- if (!execute("cat /var/run/udhcpc.%iface%.pid | xargs kill", ifd, exec)) {
+ if (!execute("kill -9 `cat /var/run/udhcpc.%iface%.pid`", ifd, exec)) {
return(0);
}
} else if (execable("/sbin/dhcpcd")) {