[x86] add missing symbols to default config
[openwrt.git] / package / dnsmasq / files / dnsmasq.init
index 70488a5..7955fdb 100644 (file)
@@ -311,11 +311,11 @@ start() {
 
        /usr/sbin/dnsmasq $args && {
                rm -f /tmp/resolv.conf
+               [ -n "$DOMAIN" ] && echo "search $DOMAIN" >> /tmp/resolv.conf
                DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
                for DNS_SERVER in $DNS_SERVERS ; do
                        echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf
                done
-               echo "search $DOMAIN" >> /tmp/resolv.conf
        }
 }
 
This page took 0.02138 seconds and 4 git commands to generate.