Skip to content

Commit

Permalink
batman-adv-auto-gw-mode: even more relaxed dnsmasq when upstream is a…
Browse files Browse the repository at this point in the history
… gw_mode=master
  • Loading branch information
altergui committed Jul 20, 2014
1 parent ff43a33 commit 4fc5677
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ dhcp4_kill () {

dnsmasq_start () {
uci revert -P/var/state dhcp.@dnsmasq[0].domainneeded
uci revert -P/var/state dhcp.@dnsmasq[0].boguspriv
uci revert -P/var/state dhcp.@dnsmasq[0].rebind_protection
uci revert -P/var/state dhcp.lan.ignore
/etc/init.d/dnsmasq start
/etc/init.d/dnsmasq restart
}

dnsmasq_stop () {
uci set -P/var/state dhcp.@dnsmasq[0].domainneeded=
uci set -P/var/state dhcp.@dnsmasq[0].boguspriv=
uci set -P/var/state dhcp.@dnsmasq[0].rebind_protection=0
uci set -P/var/state dhcp.lan.ignore=1
/etc/init.d/dnsmasq stop
}
Expand Down

0 comments on commit 4fc5677

Please sign in to comment.