summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-02-03 19:12:43 +0000
committerErmal <eri@pfsense.org>2011-02-03 19:12:43 +0000
commit1f676b67451375df5e9e22ea5939b73d7d59b6fe (patch)
tree9c3be6b64608aab777af1dde663ef43cc8800e24 /usr/local/www/interfaces.php
parent1ec2bedd589c940377a29bd006570adeb7844ff1 (diff)
downloadpfsense-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-xusr/local/www/interfaces.php5
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")
OpenPOWER on IntegriCloud