diff options
author | Steven Barth <steven@midlink.org> | 2015-04-15 15:02:55 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-04-15 15:02:55 +0200 |
commit | 07fa1d96ef060269a1db89f836df30ec2aefe1b0 (patch) | |
tree | 5a2c06b3941773a38f044cdcb87eb87247ddb905 /odhcp6c-example-script.sh | |
parent | cc1ecd2c994d5cdf31b8184d87f8849b20b0c37c (diff) | |
download | odhcp6c-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-x | odhcp6c-example-script.sh | 1 |
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 } |