Browse Source

example: actually chmod new resolv.conf after overwriting

Signed-off-by: Steven Barth <steven@midlink.org>
Steven Barth 9 years ago
parent
commit
07fa1d96ef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      odhcp6c-example-script.sh

+ 1 - 0
odhcp6c-example-script.sh

@@ -12,6 +12,7 @@ update_resolv() {
 			echo "nameserver $c #odhcp6c:$device:" >> /tmp/resolv.conf.tmp
 		done
 		mv /tmp/resolv.conf.tmp /etc/resolv.conf
+		chmod 0644 /etc/resolv.conf
 	) 9>/tmp/resolv.conf.lock
 	rm -f /tmp/resolv.conf.lock /tmp/resolv.conf.tmp
 }