projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbdb804
)
add option to cache local queries, from sn9
author
Travis Kemen
<thepeople@openwrt.org>
Tue, 2 Sep 2008 01:37:06 +0000
(
01:37
+0000)
committer
Travis Kemen
<thepeople@openwrt.org>
Tue, 2 Sep 2008 01:37:06 +0000
(
01:37
+0000)
SVN-Revision: 12485
package/dnsmasq/files/dnsmasq.init
patch
|
blob
|
history
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index 60ffc8c7aa8579945176e78d1c77324fa5e85026..79e57d5f3cee63590fe4606e0e5d1f3cea2c61b8 100644
(file)
--- a/
package/dnsmasq/files/dnsmasq.init
+++ b/
package/dnsmasq/files/dnsmasq.init
@@
-66,6
+66,7
@@
dnsmasq() {
config_get leasefile $cfg leasefile
[ -e "$leasefile" ] || touch "$leasefile"
+ config_get_bool cachelocal "$cfg" cachelocal 1
}
dhcp_subscrid_add() {
@@
-202,7
+203,7
@@
dhcp_add() {
[ -n "$ifname" ] || return 0
config_get dnsserver "$net" dns
- [ -n "$dnsserver" ] && {
+ [
"$cachelocal" = "0" -a
-n "$dnsserver" ] && {
DNS_SERVERS="$DNS_SERVERS $dnsserver"
}