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.
This commit is contained in:
parent
becc44d76c
commit
91c1935fe5
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user