mirror of
https://github.com/opnsense/src.git
synced 2026-03-25 04:03:09 -04:00
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:
parent
982a2c980e
commit
e184bd9576
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue