unbound: follow resolv.conf.auto to new location

Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
Eric Luehrsen
2020-08-07 00:03:36 -04:00
parent 65c66ddd71
commit f8ba0fe7bf
4 changed files with 16 additions and 10 deletions
+3 -3
View File
@@ -106,11 +106,11 @@ rootkey_update() {
##############################################################################
resolv_teardown() {
case $( cat /tmp/resolv.conf ) in
case $( cat $UB_RESOLV_CONF ) in
*"generated by Unbound UCI"*)
# our resolver file, reset to auto resolver file.
rm -f /tmp/resolv.conf
ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
rm -f $UB_RESOLV_CONF
ln -s $UB_RESOLV_AUTO $UB_RESOLV_CONF
;;
esac
}