2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 13:57:50 +00:00

Chmod resolv.conf in case umask is bogus

This commit is contained in:
Ted Lemon
1997-09-16 18:10:50 +00:00
parent b8cf055d97
commit f404b59e4f

View File

@@ -68,6 +68,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
route add $alias_ip_address 127.0.0.1 route add $alias_ip_address 127.0.0.1
fi fi
echo search $new_domain_name >/etc/resolv.conf echo search $new_domain_name >/etc/resolv.conf
chmod 644 /etc/resolv.conf
for nameserver in $new_domain_name_servers; do for nameserver in $new_domain_name_servers; do
echo nameserver $nameserver >>/etc/resolv.conf echo nameserver $nameserver >>/etc/resolv.conf
done done
@@ -115,6 +116,7 @@ if [ x$reason = xTIMEOUT ]; then
route add default $router >/dev/null 2>&1 route add default $router >/dev/null 2>&1
done done
echo search $new_domain_name >/etc/resolv.conf.std echo search $new_domain_name >/etc/resolv.conf.std
chmod 644 /etc/resolv.conf.std
for nameserver in $new_domain_name_servers; do for nameserver in $new_domain_name_servers; do
echo nameserver $nameserver >>/etc/resolv.conf.std echo nameserver $nameserver >>/etc/resolv.conf.std
done done