#!/bin/sh

uci batch <<EOF
set batman-adv.bat0.gw_mode=client
commit batman-adv

set network.lan_dhcp=interface
set network.lan_dhcp.ifname=@lan
set network.lan_dhcp.proto=dhcp
set network.lan_dhcp.auto=0

set network.lan_dhcpv6=interface
set network.lan_dhcpv6.ifname=@lan
set network.lan_dhcpv6.proto=dhcpv6
set network.lan_dhcpv6.auto=0
commit network
EOF
