treewide: avoid double-escaping CBI section labels
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_wan_dhcp.sh
1 #!/bin/sh
2 # Setup dhcp interface settings for wan. This is the OpenWrt default,
3 # so all we need to do here is to delete wan from meshwizard after setup.
4 # Also disallow ra on wan if ipv6 is enabled
5
6 [ ! "$(uci -q get network.wan)" == "interface" ] && exit
7
8 . /lib/functions.sh
9 . $dir/functions.sh
10
11 if [ "$ipv6_enabled" = "1" ]; then
12 uci set network.wan.accept_ra='0'
13 uci_commitverbose "Do not accept ra on wan interface" network
14 fi
15
16
17 uci delete meshwizard.wan && uci commit meshwizard
18