Enable DNS servers from mesh, disable on wan
This commit is contained in:
parent
ded5925f83
commit
4cf9b23e02
7
package/gluon-core/files/lib/gluon/upgrade/core/invariant/011-network
Executable file
7
package/gluon-core/files/lib/gluon/upgrade/core/invariant/011-network
Executable file
@ -0,0 +1,7 @@
|
||||
#!/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'
|
||||
|
Loading…
Reference in New Issue
Block a user