contrib/meshwizard: Add initial support for ipv6 config (with auto-ipv6-ib and dhcpv6)
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / wizard.sh
index f58253b..33ef0b0 100755 (executable)
@@ -12,7 +12,7 @@
 . /etc/functions.sh
 
 echo "
-/* Meshwizard 0.0.4 */
+/* Meshwizard 0.0.7 */
 "
 
 # config
@@ -67,6 +67,14 @@ if [ "$lan_proto" == "static" ] && [ -n "$lan_ip4addr" ] && [ -n "$lan_netmask"
        $dir/helpers/setup_lan_static.sh
 fi
 
+if [ "$profile_ipv6" == 1 ]; then
+       $dir/helpers/setup_lan_ipv6.sh
+       # Setup auto-ipv6
+       if [ "$profile_ipv6_config" = "auto-ipv6-dhcpv6" ]; then
+               $dir/helpers/setup_auto-ipv6.sh
+       fi
+fi
+
 # Setup policyrouting if internet sharing is disabled and wan is not used for olsrd
 # Always disable it first to make sure its disabled when the user decied to share his internet
 uci set freifunk-policyrouting.pr.enable=0