diff --git a/package/gluon-core/files/lib/gluon/upgrade/core/invariant/011-network b/package/gluon-core/files/lib/gluon/upgrade/core/invariant/011-network new file mode 100755 index 0000000000000000000000000000000000000000..96a952e4b2cb48dc067f2cf6c1b88f54b1967291 --- /dev/null +++ b/package/gluon-core/files/lib/gluon/upgrade/core/invariant/011-network @@ -0,0 +1,7 @@ +#!/bin/sh + +. /lib/functions.sh + + +uci_set network wan peerdns '0' +uci_commit network diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/initial/010-mesh b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/initial/010-mesh index 12aea75eeed88bae6fa31bd3fd69007a93b325c7..6a249e7913cc37b8bc7233841cbe8dff70e85f4d 100755 --- a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/initial/010-mesh +++ b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/initial/010-mesh @@ -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 diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh index 755a9c57c1aa6c3ed500054bf13b4711e9d57b97..7b89edeb2beab16dac7cbb8de5dbaa91da5fc690 100755 --- a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh +++ b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/invariant/011-mesh @@ -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'