Skip to content
Snippets Groups Projects
Commit 4cf9b23e authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Enable DNS servers from mesh, disable on wan

parent ded5925f
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
. /lib/functions.sh
uci_set network wan peerdns '0'
uci_commit network
......@@ -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
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment