From c4efde2a38d19c5941a12bb133c6768e4fca385f Mon Sep 17 00:00:00 2001 From: mbr Date: Sat, 26 Jun 2004 10:47:38 +0000 Subject: [PATCH] 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 --- contrib/isc-dhcp/client/scripts/freebsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd index e35d8b51642f..4beba054fe06 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