diff options
author | Ermal <eri@pfsense.org> | 2014-02-17 10:22:05 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-17 10:22:05 +0000 |
commit | 89c7a9c870bbf1a68f3fe3e7109bdb547120e597 (patch) | |
tree | 3f8f2ab5bbc776d7d1a6eb7ef78b3f0cf88899ee /usr/local | |
parent | eae913048438b87b49606498b23aa334447a3d5a (diff) | |
download | pfsense-89c7a9c870bbf1a68f3fe3e7109bdb547120e597.zip pfsense-89c7a9c870bbf1a68f3fe3e7109bdb547120e597.tar.gz |
Some tweaking to handle when switching off dhcpv6.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/interfaces.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 8927d5b..83fc745 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -71,6 +71,9 @@ define("CRON_WEEKLY_PATTERN", "0 0 * * 0"); define("CRON_DAILY_PATTERN", "0 0 * * *"); define("CRON_HOURLY_PATTERN", "0 * * * *"); +if (!is_array($pconfig)) + $pconfig = array(); + if (!is_array($config['ppps']['ppp'])) $config['ppps']['ppp'] = array(); @@ -785,16 +788,16 @@ 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['ipaddrv6'] == "dhcp6") { - $pid = find_dhcp6c_process($wancfg['if']); - if($pid) - posix_kill($pid, SIGTERM); } else if ($wancfg['ipaddr'] == "dhcp") { $pid = find_dhclient_process($wancfg['if']); if($pid) posix_kill($pid, SIGTERM); } - + if ($wancfg['ipaddrv6'] == "dhcp6") { + $pid = find_dhcp6c_process($wancfg['if']); + if($pid) + posix_kill($pid, SIGTERM); + } } $ppp = array(); if ($wancfg['ipaddr'] != "ppp") |