Changeset 19090


Ignore:
Timestamp:
2010-01-10T16:31:58+01:00 (8 years ago)
Author:
jow
Message:

[package] dnsmasq: only write search directive if domain is actually set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dnsmasq/files/dnsmasq.init

    r19086 r19090  
    312312        /usr/sbin/dnsmasq $args && { 
    313313                rm -f /tmp/resolv.conf 
     314                [ -n "$DOMAIN" ] && echo "search $DOMAIN" >> /tmp/resolv.conf 
    314315                DNS_SERVERS="$DNS_SERVERS 127.0.0.1" 
    315316                for DNS_SERVER in $DNS_SERVERS ; do 
    316317                        echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf 
    317318                done 
    318                 echo "search $DOMAIN" >> /tmp/resolv.conf 
    319319        } 
    320320} 
Note: See TracChangeset for help on using the changeset viewer.