aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-01-10 15:31:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-01-10 15:31:58 +0000
commitf40e9e8d8a1905b51e2edd3e07f6012eb86f423d (patch)
treeae6e9fa44bb1cfe673c58fada72f08835a2e7bf1 /package/dnsmasq
parent46783f81eefb0e8ff42a10a270f7543c8f58ca3b (diff)
downloadupstream-f40e9e8d8a1905b51e2edd3e07f6012eb86f423d.tar.gz
upstream-f40e9e8d8a1905b51e2edd3e07f6012eb86f423d.tar.bz2
upstream-f40e9e8d8a1905b51e2edd3e07f6012eb86f423d.zip
dnsmasq: only write search directive if domain is actually set
SVN-Revision: 19090
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/files/dnsmasq.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 70488a569f..7955fdb0ec 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
}
}