]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/unbound
unbound: Silence error when upstream name servers cannot be read
[ipfire-2.x.git] / src / initscripts / system / unbound
index e5554d725420727c21f841ccb59e0a23564d44a1..4e7e63e5fa72727f2d7c80079bc35ea0b15ec9d0 100644 (file)
@@ -61,7 +61,7 @@ read_name_servers() {
        local i
        for i in 1 2; do
                echo "$(</var/ipfire/red/dns${i})"
-       done | xargs echo
+       done 2>/dev/null | xargs echo
 }
 
 config_header() {