diff options
author | mbr <mbr@FreeBSD.org> | 2004-06-26 10:47:38 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2004-06-26 10:47:38 +0000 |
commit | c4efde2a38d19c5941a12bb133c6768e4fca385f (patch) | |
tree | 242a40fcc13ac27d4de1aa0e519d0f729aa31a73 /contrib | |
parent | 4e40f399fecf9d0f0e8ca17159648ad46ea9f86c (diff) | |
download | FreeBSD-src-c4efde2a38d19c5941a12bb133c6768e4fca385f.zip FreeBSD-src-c4efde2a38d19c5941a12bb133c6768e4fca385f.tar.gz |
Our dhclient-script fails to update /etc/resolv.conf if no new
domain name is given and /etc/resolv.conf doesn't exist. Fix this
by using -f (force).
Assigned to ISC as ISC-Bugs #11570
PR: bin/67613
Submitted by: Nikos Ntarmos <ntarmos@ceid.upatras.gr>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/isc-dhcp/client/scripts/freebsd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd index e35d8b5..4beba05 100755 --- a/contrib/isc-dhcp/client/scripts/freebsd +++ b/contrib/isc-dhcp/client/scripts/freebsd @@ -16,7 +16,7 @@ make_resolv_conf() { ( echo search $new_domain_name >/etc/resolv.conf ) exit_status=$? else - ( rm /etc/resolv.conf ) + ( rm -f /etc/resolv.conf ) exit_status=$? fi if [ $exit_status -ne 0 ]; then |