1b4f9b16fafd0c8735b70dbce8ffee937982062f
3 [ ! "$(uci -q get network.lan)" == "interface" ] && exit
8 # Setup IPv6 for the lan interface
11 if [ "$ipv6_config" = "auto-ipv6-dhcpv6" ]; then
13 device
="$(uci -p/var/state -q get network.lan.ifname)"
14 if [ -n "device" ]; then
15 ip6addr
="$($dir/helpers/gen_auto-ipv6-dhcpv6-ip.sh $device)"
17 uci
set network.lan.ip6addr
="${ip6addr}/112"
20 uci_commitverbose
"Setup ipv6 address for lan" network