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>
This commit is contained in:
mbr 2004-06-26 10:47:38 +00:00
parent 4e40f399fe
commit c4efde2a38

View File

@ -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