summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient-script
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-10 20:36:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-10 20:36:18 +0000
commitddb8b357263357b90d2d8c547c305cf215a95d94 (patch)
tree521c4cad71d895cc3b1cc008b09f0092a1a7de1b /sbin/dhclient-script
parentd0d881227a7c59c1731e23f9d1663b5d916f6f6c (diff)
downloadpfsense-ddb8b357263357b90d2d8c547c305cf215a95d94.zip
pfsense-ddb8b357263357b90d2d8c547c305cf215a95d94.tar.gz
Bring in m0n0wall specific patches on top of open's dhclient-script
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-xsbin/dhclient-script4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index 7699648..5536219 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -148,9 +148,13 @@ add_new_resolv_conf() {
echo "search $new_domain_name" >>/etc/resolv.conf.std
fi
+ rm -f /var/etc/nameservers.conf
+
if [ -n "$new_domain_name_servers" ]; then
for nameserver in $new_domain_name_servers; do
echo "nameserver $nameserver" >>/etc/resolv.conf.std
+ echo $nameserver >>/var/etc/nameservers.conf
+ echo $new_domain_name >/var/etc/defaultdomain.conf
done
fi
OpenPOWER on IntegriCloud