X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=odhcp6c-example-script.sh;h=00d80560c1a015c967f7bf77eec9081c47a3cfca;hb=07fa1d96ef060269a1db89f836df30ec2aefe1b0;hp=a1fb0fc22f4752e0320fbd4d6e012e283afb5072;hpb=cc1ecd2c994d5cdf31b8184d87f8849b20b0c37c;p=odhcp6c.git 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 }