Enable DNS servers from mesh, disable on wan

This commit is contained in:
Matthias Schiffer 2014-01-25 02:09:35 +01:00
parent ded5925f83
commit 4cf9b23e02
3 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh
. /lib/functions.sh
uci_set network wan peerdns '0'
uci_commit network

View File

@ -16,7 +16,5 @@ fi
uci_set network client type 'bridge'
uci_set network client proto 'dhcpv6'
uci_set network client reqprefix 'no'
uci_set network client peerdns '0'
uci_set network client macaddr "$(sysconfig primary_mac)"
echo 'net.ipv6.conf.br-client.forwarding=0' >> /etc/sysctl.conf

View File

@ -10,6 +10,9 @@ uci_set batman-adv bat0 orig_interval '5000'
uci_set batman-adv bat0 gw_mode 'client'
uci_commit batman-adv
uci_set network client macaddr "$(sysconfig primary_mac)"
uci_set network client peerdns '1'
uci_remove network bat0
uci_add network interface bat0
uci_set network bat0 ifname 'bat0'