diff options
author | Ermal <eri@pfsense.org> | 2011-02-03 19:12:43 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-02-03 19:12:43 +0000 |
commit | 1f676b67451375df5e9e22ea5939b73d7d59b6fe (patch) | |
tree | 9c3be6b64608aab777af1dde663ef43cc8800e24 /usr/local/www/interfaces.php | |
parent | 1ec2bedd589c940377a29bd006570adeb7844ff1 (diff) | |
download | pfsense-1f676b67451375df5e9e22ea5939b73d7d59b6fe.zip pfsense-1f676b67451375df5e9e22ea5939b73d7d59b6fe.tar.gz |
Ticket #259. Actually kill dhlient when the interface type changes before going through apply changes otherwise the information would be lost and dhclient will remain running.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 98d449b..d1fa6f7 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -517,7 +517,12 @@ if ($_POST['apply']) { if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp"))) { $wancfg['if'] = $a_ppps[$pppid]['ports']; unset($a_ppps[$pppid]); + } else if ($wancfg['type'] == "dhcp") { + $pid = find_dhclient_process($realif); + if($pid) + posix_kill($pid, SIGTERM); } + } $ppp = array(); if ($wancfg['ipaddr'] != "ppp") |