unbound: Silence error when upstream name servers cannot be read
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Nov 2017 15:02:28 +0000 (16:02 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Nov 2017 15:02:28 +0000 (16:02 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/unbound

index e5554d7..4e7e63e 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() {