From: Steven Barth Date: Wed, 15 Apr 2015 13:02:55 +0000 (+0200) Subject: example: actually chmod new resolv.conf after overwriting X-Git-Url: http://git.openwrt.org/?p=project%2Fodhcp6c.git;a=commitdiff_plain;h=07fa1d96ef060269a1db89f836df30ec2aefe1b0 example: actually chmod new resolv.conf after overwriting Signed-off-by: Steven Barth --- diff --git a/odhcp6c-example-script.sh b/odhcp6c-example-script.sh index a1fb0fc..00d8056 100755 --- a/odhcp6c-example-script.sh +++ b/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 }