#!/bin/sh wan6proto=$(uci get network.wan6.proto) if [ "${wan6proto}" = '6in4' ]; then uci add_list network.wan6.ip6prefix=$(uci get network.globals.ula_prefix) elif [ "${wan6proto}" = 'dhcpv6' ]; then uci set network.wan6.sourcefilter="0" fi uci commit ifup wan6