summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-16 22:42:22 +0000
committerErmal <eri@pfsense.org>2010-09-16 22:42:22 +0000
commit86dcdfc9af338c8f76de0d6863ed058c4be74665 (patch)
tree5f20a71c089615a5ee37fb2e575a0546dbb46244 /etc/inc/interfaces.inc
parent9d1f614cf5108062a991d405386aabb0739a02be (diff)
downloadpfsense-86dcdfc9af338c8f76de0d6863ed058c4be74665.zip
pfsense-86dcdfc9af338c8f76de0d6863ed058c4be74665.tar.gz
Add as a search domain the domains suggested by dhcp.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 0f85aaa..ae8c299 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -886,6 +886,8 @@ function interface_bring_down($interface = "wan", $destroy = false) {
unlink_if_exists("{$g['tmp_path']}/{$realif}up");
unlink_if_exists("{$g['vardb_path']}/{$interface}ip");
unlink_if_exists("{$g['tmp_path']}/{$realif}_router");
+ unlink_if_exists("{$g['varetc_path']}/nameserver_{$realif}");
+ unlink_if_exists("{$g['varetc_path']}/searchdomain_{$realif}");
/* hostapd and wpa_supplicant do not need to be running when the interface is down.
* They will also use 100% CPU if running after the wireless clone gets deleted. */
OpenPOWER on IntegriCloud