d44600b78577037faba5389103380209b7deea85
[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 if [ "$general_ipv6_config" = "auto-ipv6-fromv4" ]; then
6 mode="fromv4"
7 else
8 mode="random"
9 fi
10
11 uci set autoipv6.olsr_node.enabled=1
12 uci set autoipv6.olsr_node.mode="$mode"
13 uci_commitverbose "Setup auto-ipv6" autoipv6