pxe-common: add dns domain name in resolv.conf

Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse 2016-09-29 17:09:59 +02:00 committed by Gerardo Exequiel Pozzi
parent 38b81f0384
commit 7b5d876742

View File

@ -45,6 +45,9 @@ run_hook () {
if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then
echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf
fi fi
if [[ -n "${DNSDOMAIN}" ]]; then
echo "search ${DNSDOMAIN}" >> /etc/resolv.conf
fi
fi fi
} }