gluon-packages/gluon/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/initial/010-mesh

16 lines
434 B
Bash
Executable File

#!/bin/sh
. /lib/functions.sh
. /lib/gluon/functions/sysconfig.sh
uci_add network interface client
uci_set network client ifname "$(sysconfig lan_ifname) bat0"
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