]> git.ipfire.org Git - network.git/commitdiff
DNS: Generate resolv.conf when starting up the network.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jun 2012 23:06:58 +0000 (23:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jun 2012 23:06:58 +0000 (23:06 +0000)
functions.dns

index 85c0f3f35bfef2d8a550772d71c8c571d99a45fc..39ddfad729672bf160c88fe77c2418131dcf85ea 100644 (file)
@@ -101,6 +101,9 @@ function dns_server_flush() {
        : > ${DNS_SERVER_CONFIG_FILE}
 }
 
+# Update resolv.conf(5) when initializing the network.
+init_register dns_generate_resolvconf
+
 function dns_generate_resolvconf() {
        local file=${RESOLV_CONF}