summaryrefslogtreecommitdiff
path: root/odhcp6c-example-script.sh
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-04-15 15:02:55 +0200
committerSteven Barth <steven@midlink.org>2015-04-15 15:02:55 +0200
commit07fa1d96ef060269a1db89f836df30ec2aefe1b0 (patch)
tree5a2c06b3941773a38f044cdcb87eb87247ddb905 /odhcp6c-example-script.sh
parentcc1ecd2c994d5cdf31b8184d87f8849b20b0c37c (diff)
downloadodhcp6c-07fa1d96ef060269a1db89f836df30ec2aefe1b0.tar.gz
example: actually chmod new resolv.conf after overwriting
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'odhcp6c-example-script.sh')
-rwxr-xr-xodhcp6c-example-script.sh1
1 files changed, 1 insertions, 0 deletions
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
}