contrib/meshwizard: IPv6 fixes
This commit is contained in:
parent
d21dc5cfa6
commit
71d4bb6f46
2 changed files with 19 additions and 7 deletions
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
net=$1
|
||||||
|
. $dir/functions.sh
|
||||||
|
|
||||||
|
ra="$(uci -q get meshwizard.netconfig.${net}_ipv6ra)"
|
||||||
|
uci set autoipv6.${netrenamed}="interface"
|
||||||
|
if [ -n "$ra" ]; then
|
||||||
|
uci set autoipv6.${netrenamed}.ra=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
uci_commitverbose "Setup auto-ipv6 for interface $netrenamed" autoipv6
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
. $dir/functions.sh
|
. $dir/functions.sh
|
||||||
|
|
||||||
# Setup auto-ipv6
|
if [ "$general_ipv6_config" = "auto-ipv6-fromv4" ]; then
|
||||||
|
mode="fromv4"
|
||||||
if [ "$profile_ipv6_config" = "auto-ipv6-dhcpv6" ]; then
|
else
|
||||||
uci set autoipv6.olsr_node.enable=1
|
mode="random"
|
||||||
uci_commitverbose "Setup auto-ipv6 for dhcpv6 mode" autoipv6
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
uci set autoipv6.olsr_node.enabled=1
|
||||||
|
uci set autoipv6.olsr_node.mode="$mode"
|
||||||
|
uci_commitverbose "Setup auto-ipv6" autoipv6
|
||||||
|
|
Loading…
Reference in a new issue