3 [ ! "$(uci -q get network.lan)" == "interface" ] && exit
8 # Setup IPv6 for the lan interface
11 if [ "$ipv6_config" = "auto-ipv6-dhcpv6" ]; then
13 local 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