unbound: Silence error when upstream name servers cannot be read
[ipfire-2.x.git] / 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() {