index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-11-28 12:28:03 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-11-28 12:28:03 -0300 |
commit | 8bd067461dc043a5c594c5230c79243198c45aff (patch) | |
tree | 7384d82d097325d9333d85a9b8d7a891873b3f11 /archiso/hooks/archiso_pxe_common | |
parent | 76dea1654eafdf6544899edcad839a7d22bcddce (diff) |
-rw-r--r-- | archiso/hooks/archiso_pxe_common | 8 |
diff --git a/archiso/hooks/archiso_pxe_common b/archiso/hooks/archiso_pxe_common index cf9fce8..febb503 100644 --- a/archiso/hooks/archiso_pxe_common +++ b/archiso/hooks/archiso_pxe_common @@ -30,5 +30,13 @@ run_hook () { . /tmp/net-*.conf pxeserver=${ROOTSERVER} + + # setup DNS resolver + if [[ "${IPV4DNS0}" != "0.0.0.0" ]]; then + echo "nameserver ${IPV4DNS0}" > /etc/resolv.conf + fi + if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then + echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf + fi fi } |