summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/meshwizard/files/usr
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2012-06-27 16:13:56 +0000
committerManuel Munz <freifunk@somakoma.de>2012-06-27 16:13:56 +0000
commitb6cd0f852b431ea9a32353e7c091928ddfba0317 (patch)
tree1c1fd6344f6a52ca696392a78ffe6d5a84566367 /contrib/package/meshwizard/files/usr
parente2dd594c3827c67c72e12a19ee38bf893bd3f10c (diff)
contrib/meshwizard: check if ipv6 is available on the system
Diffstat (limited to 'contrib/package/meshwizard/files/usr')
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh
index 8c9088f073..859d5ff6b6 100755
--- a/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh
@@ -12,12 +12,13 @@
. /lib/functions.sh
echo "
-/* Meshwizard 0.0.7 */
+/* Meshwizard 0.0.8 */
"
# config
export dir="/usr/bin/meshwizard"
. $dir/functions.sh
+[ -f /proc/net/ipv6_route ] && has_ipv6=1
# Check which packages we have installed
export has_luci=FALSE
@@ -67,7 +68,7 @@ if [ "$lan_proto" == "static" ] && [ -n "$lan_ip4addr" ] && [ -n "$lan_netmask"
$dir/helpers/setup_lan_static.sh
fi
-if [ "$profile_ipv6" == 1 ]; then
+if [ "$profile_ipv6" == 1 ] && [ "$has_ipv6" = 1 ]; then
$dir/helpers/setup_lan_ipv6.sh
# Setup auto-ipv6
if [ "$profile_ipv6_config" = "auto-ipv6-dhcpv6" ]; then
@@ -101,7 +102,7 @@ for net in $networks; do
$dir/helpers/setup_splash.sh $net
$dir/helpers/setup_firewall_interface.sh $net
- if [ "$profile_ipv6" == 1 ]; then
+ if [ "$profile_ipv6" == 1 ] && [ "$has_ipv6" = 1 ]; then
$dir/helpers/setup_radvd_interface.sh $net
fi
done