diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 20:36:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 20:36:18 +0000 |
commit | ddb8b357263357b90d2d8c547c305cf215a95d94 (patch) | |
tree | 521c4cad71d895cc3b1cc008b09f0092a1a7de1b | |
parent | d0d881227a7c59c1731e23f9d1663b5d916f6f6c (diff) | |
download | pfsense-ddb8b357263357b90d2d8c547c305cf215a95d94.zip pfsense-ddb8b357263357b90d2d8c547c305cf215a95d94.tar.gz |
Bring in m0n0wall specific patches on top of open's dhclient-script
-rwxr-xr-x | sbin/dhclient-script | 4 |
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 |