contrib/meshwizard: enable auto-ipv6 in meshwizard, removed radvd config
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_auto-ipv6.sh
1 #!/bin/sh
2
3 . $dir/functions.sh
4
5 echo $profile_ipv6_config
6 if [ "$profile_ipv6_config" = "auto-ipv6-fromv4" ]; then
7 mode="fromv4"
8 else
9 mode="random"
10 fi
11
12 uci set autoipv6.olsr_node.enabled=1
13 uci set autoipv6.olsr_node.mode="$mode"
14 uci_commitverbose "Setup auto-ipv6" autoipv6