mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Patch from Manousaridis Angelos to bring dhclient down more elegently
This commit is contained in:
parent
5529b7bb87
commit
4d405bbc05
@ -564,7 +564,8 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
|
||||
{
|
||||
int result = 0;
|
||||
if (execable("/sbin/udhcpc")) {
|
||||
execute("kill -9 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
|
||||
execute("kill -USR2 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
|
||||
execute("kill -TERM `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
|
||||
} else if (execable("/sbin/pump")) {
|
||||
result = execute("pump -i %iface% -k", ifd, exec);
|
||||
} else if (execable("/sbin/dhclient")) {
|
||||
|
Loading…
Reference in New Issue
Block a user