From 07fa1d96ef060269a1db89f836df30ec2aefe1b0 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 15 Apr 2015 15:02:55 +0200 Subject: [PATCH] example: actually chmod new resolv.conf after overwriting Signed-off-by: Steven Barth --- odhcp6c-example-script.sh | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.39.2