#!/bin/sh . /lib/functions.sh . /lib/gluon/functions/sysconfig.sh uci_remove batman-adv bat0 uci_add batman-adv mesh bat0 uci_set batman-adv bat0 orig_interval '5000' uci_commit batman-adv 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)" uci_commit network