1 # Minimal version using shell builtins.
5 if [ -z "${new_domain_name_servers}" -a \
6 -z "${new_domain_name}" -a \
7 -z "${new_domain_search}" ]; then
10 if [ -n "${new_domain_search}" ]; then
11 echo "search ${new_domain_search}" >> /etc/resolv.conf
12 elif [ -n "${new_domain_name}" ]; then
13 echo "search ${new_domain_name}" >> /etc/resolv.conf
15 for x in ${new_domain_name_servers}; do
16 echo "nameserver ${x}" >> /etc/resolv.conf
21 BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT) make_resolv_conf;;