meshwizard: ipv6 fixes, fix uhttpd setup
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_wan_dhcp.sh
index 98b941b..91fc1d8 100755 (executable)
@@ -1,11 +1,18 @@
 #!/bin/sh
 # Setup dhcp interface settings for wan. This is the OpenWrt default,
 # so all we need to do here is to delete wan from meshwizard after setup.
+# Also disallow ra on wan if ipv6 is enabled
 
 [ ! "$(uci -q get network.wan)" == "interface" ] && exit
 
 . /lib/functions.sh
 . $dir/functions.sh
 
+if [ "$ipv6_enabled" = "1" ]; then
+       uci set network.wan.accept_ra='0'
+       uci_commitverbose "Do not accept ra on wan interface" network
+fi
+
+
 uci delete meshwizard.wan && uci commit meshwizard