Skip to content

Commit 07fa1d9

Browse files
committed
example: actually chmod new resolv.conf after overwriting
Signed-off-by: Steven Barth <[email protected]>
1 parent cc1ecd2 commit 07fa1d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

odhcp6c-example-script.sh

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ update_resolv() {
1212
echo "nameserver $c #odhcp6c:$device:" >> /tmp/resolv.conf.tmp
1313
done
1414
mv /tmp/resolv.conf.tmp /etc/resolv.conf
15+
chmod 0644 /etc/resolv.conf
1516
) 9>/tmp/resolv.conf.lock
1617
rm -f /tmp/resolv.conf.lock /tmp/resolv.conf.tmp
1718
}

0 commit comments

Comments
 (0)