]> git.ipfire.org Git - network.git/commitdiff
Undo the nano damage from a9ebc53bddcff8f13d7dd0cada8b9c03b20e344f.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Oct 2012 18:26:47 +0000 (18:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Oct 2012 18:26:47 +0000 (18:26 +0000)
functions.dns

index 068ef10ee24ff88e69e1159d5010f780841cf9d5..33f80201729201d0122bb8641be91eb70c30a63a 100644 (file)
@@ -1,36 +1,34 @@
 #!/bin/bash
 ###############################################################################
 #                                                                             #
-# IPFire.org - A linux based firewall # Copyright (C) 2012 IPFire 
-# Network Development Team #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2012  IPFire Network Development Team                         #
 #                                                                             #
-# This program is free software: you can redistribute it and/or modify 
-# it under the terms of the GNU General Public License as published by 
-# the Free Software Foundation, either version 3 of the License, or 
-# (at your option) any later version.  #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
 #                                                                             #
-# This program is distributed in the hope that it will be useful, # but 
-# WITHOUT ANY WARRANTY; without even the implied warranty of # 
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the # GNU 
-# General Public License for more details.  #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
 #                                                                             #
-# You should have received a copy of the GNU General Public License # 
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.  
-# #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
 #                                                                             #
 ###############################################################################
 
 # Set this to true if localhost should be added as the first DNS server.
-DNS_USE_LOCAL_RESOLVER=true 
-NETWORK_CONFIG_FILE_PARAMS="${NETWORK_CONFIG_FILE_PARAMS} 
-DNS_USE_LOCAL_RESOLVER"
+DNS_USE_LOCAL_RESOLVER=true
+NETWORK_CONFIG_FILE_PARAMS="${NETWORK_CONFIG_FILE_PARAMS} DNS_USE_LOCAL_RESOLVER"
 
-# Set this option to true if the DNS servers should be queried in a 
-# random order. This is useful to load balance between multiple servers.
-DNS_RANDOMIZE=false 
+# Set this option to true if the DNS servers should be queried in a random order.
+# This is useful to load balance between multiple servers.
+DNS_RANDOMIZE=false
 NETWORK_CONFIG_FILE_PARAMS="${NETWORK_CONFIG_FILE_PARAMS} DNS_RANDOMIZE"
 
-# Set this option to true if the DNS servers should be advertised by 
+# Set this option to true if the DNS servers should be advertised by
 # radvd.
 DNS_ADVERTISE_SERVERS="true"
 
@@ -105,8 +103,8 @@ function dns_server_remove() {
        local entries=$(dns_server_list)
 
        while read entry priority; do
-               [ "${entry}" = "${server}" ] && continue 
-__dns_server_println "${server}" "${priority}"
+               [ "${entry}" = "${server}" ] && continue
+               __dns_server_println "${server}" "${priority}"
        done <<< ${entries} | __dns_server_sort > ${DNS_SERVER_CONFIG_FILE}
 }