1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 04:49:42 +02:00

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19090 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2010-01-10 15:31:58 +00:00
parent ff5b27312b
commit 06c76b2102

View File

@ -311,11 +311,11 @@ start() {
/usr/sbin/dnsmasq $args && { /usr/sbin/dnsmasq $args && {
rm -f /tmp/resolv.conf rm -f /tmp/resolv.conf
[ -n "$DOMAIN" ] && echo "search $DOMAIN" >> /tmp/resolv.conf
DNS_SERVERS="$DNS_SERVERS 127.0.0.1" DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
for DNS_SERVER in $DNS_SERVERS ; do for DNS_SERVER in $DNS_SERVERS ; do
echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf
done done
echo "search $DOMAIN" >> /tmp/resolv.conf
} }
} }