From f40e9e8d8a1905b51e2edd3e07f6012eb86f423d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 10 Jan 2010 15:31:58 +0000 Subject: [PATCH] dnsmasq: only write search directive if domain is actually set SVN-Revision: 19090 --- package/dnsmasq/files/dnsmasq.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 70488a569fe6..7955fdb0ecb8 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -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 } } -- 2.30.2