contrib/meshwizard: Only setup 6and4 for olsrd if ipv6 is available
This commit is contained in:
parent
dbeb9c5499
commit
016a39fd8a
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ handle_interfacedefaults() {
|
||||||
config_foreach handle_interfacedefaults InterfaceDefaults
|
config_foreach handle_interfacedefaults InterfaceDefaults
|
||||||
|
|
||||||
# Set basic olsrd settings
|
# Set basic olsrd settings
|
||||||
if [ "$profile_ipv6" = 1 ]; then
|
if [ "$profile_ipv6" = 1 ] && [ "$has_ipv6" == "1" ]; then
|
||||||
uci set olsrd.olsrd.IpVersion="6and4"
|
uci set olsrd.olsrd.IpVersion="6and4"
|
||||||
fi
|
fi
|
||||||
uci_commitverbose "Setup olsr basic settings" olsrd
|
uci_commitverbose "Setup olsr basic settings" olsrd
|
||||||
|
|
|
@ -18,7 +18,7 @@ echo "
|
||||||
# config
|
# config
|
||||||
export dir="/usr/bin/meshwizard"
|
export dir="/usr/bin/meshwizard"
|
||||||
. $dir/functions.sh
|
. $dir/functions.sh
|
||||||
[ -f /proc/net/ipv6_route ] && has_ipv6=1
|
[ -f /proc/net/ipv6_route ] && export has_ipv6=1
|
||||||
|
|
||||||
# Check which packages we have installed
|
# Check which packages we have installed
|
||||||
export has_luci=FALSE
|
export has_luci=FALSE
|
||||||
|
|
Loading…
Reference in a new issue