diff options
author | phk <phk@FreeBSD.org> | 2003-10-03 18:26:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-03 18:26:33 +0000 |
commit | 2eee80dc38ec87a007e98d817061d601e30f89bc (patch) | |
tree | 66f0e6ef2a9dc146b84b486e9452558ae1396049 /etc/rc.d/tmp | |
parent | 8dd5eb97cf24bf6f275042acc34c5574ca559739 (diff) | |
download | FreeBSD-src-2eee80dc38ec87a007e98d817061d601e30f89bc.zip FreeBSD-src-2eee80dc38ec87a007e98d817061d601e30f89bc.tar.gz |
In case we have no /etc/resolv.conf, don't try to make it out of
thin blue air if the kenv doesn't have any info.
This improves the truth value of the comment above significantly and
reduces the bogous output on the console considerably.
Diffstat (limited to 'etc/rc.d/tmp')
-rw-r--r-- | etc/rc.d/tmp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index 748a10b..a244d71 100644 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -154,7 +154,7 @@ fi # if the info is available via dhcp/kenv # build the resolv.conf # -if [ ! -e /etc/resolv.conf ]; then +if [ ! -e /etc/resolv.conf -a `/bin/kenv dhcp.domain-name-servers` != "" ]; then echo domain `/bin/kenv dhcp.domain-name` > /etc/resolv.conf set `/bin/kenv dhcp.domain-name-servers` |