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

21 lines
445 B
Bash
Executable File

#!/bin/sh
. /lib/functions.sh
. /lib/gluon/functions/sysconfig.sh
lan_ifname="$(sysconfig lan_ifname)"
uci_add network interface client
if [ -n "$lan_ifname" ]; then
uci_set network client ifname "$lan_ifname bat0"
else
uci_set network client ifname "bat0"
fi
uci_set network client type 'bridge'
uci_set network client proto 'dhcpv6'
uci_set network client reqprefix 'no'
echo 'net.ipv6.conf.br-client.forwarding=0' >> /etc/sysctl.conf