diff options
-rwxr-xr-x | scripts/live | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/live b/scripts/live index 76be7ae..57a4d32 100755 --- a/scripts/live +++ b/scripts/live @@ -730,12 +730,15 @@ do_netsetup () if [ -n "${DNSDOMAIN}" ] then echo "domain ${DNSDOMAIN}" > /etc/resolv.conf - echo "search ${DNSDOMAIN}" > /etc/resolv.conf + echo "search ${DNSDOMAIN}" >> /etc/resolv.conf fi for i in ${IPV4DNS0} ${IPV4DNS1} ${IPV4DNS1} do - echo "nameserver $i" >> /etc/resolv.conf + if [ -n "$i" ] && [ "$i" != 0.0.0.0 ] + then + echo "nameserver $i" >> /etc/resolv.conf + fi done fi |