V8.13.528.2025.12.03
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m9s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-12-03 14:33:36 +01:00
parent c0c918820a
commit 606c579412

View File

@@ -187,12 +187,18 @@ EOF
echo "domain ${DNSDOMAIN}" > /etc/resolv.conf echo "domain ${DNSDOMAIN}" > /etc/resolv.conf
fi fi
for i in ${IPV4DNS0} ${IPV4DNS1} ${IPV4DNS1} ${DNSSERVERS} for i in ${IPV4DNS0} ${IPV4DNS1} ${IPV4DNS1} ${DNSSERVERS}; do
do
if [ -n "${i}" ] && [ "${i}" != 0.0.0.0 ] case "${i}" in
then
""|0.0.0.0|dhcp|DHCP)
continue
;;
esac
echo "nameserver ${i}" >> /etc/resolv.conf echo "nameserver ${i}" >> /etc/resolv.conf
fi
done done
if [ -n "${DOMAINSEARCH}" ] if [ -n "${DOMAINSEARCH}" ]