contrib/meshwizard: IPv6 fixes
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_auto-ipv6.sh
index edbbbc4..d44600b 100755 (executable)
@@ -2,12 +2,12 @@
 
 . $dir/functions.sh
 
-# Setup auto-ipv6
-
-if [ "$profile_ipv6_config" = "auto-ipv6-dhcpv6" ]; then
-       uci set autoipv6.olsr_node.enable=1
-       uci_commitverbose "Setup auto-ipv6 for dhcpv6 mode" autoipv6
+if [ "$general_ipv6_config" = "auto-ipv6-fromv4" ]; then
+       mode="fromv4"
+else
+       mode="random"
 fi
 
-       
-
+uci set autoipv6.olsr_node.enabled=1
+uci set autoipv6.olsr_node.mode="$mode"
+uci_commitverbose "Setup auto-ipv6" autoipv6