2 # Setup static interface settings for wan if wan is not an olsr interface
4 [ ! "$(uci -q get network.wan)" == "interface" ] && exit
10 set network.wan.proto='$wan_proto'
11 set network.wan.ipaddr='$wan_ip4addr'
12 set network.wan.netmask='$wan_netmask'
13 set network.wan.gateway='$wan_gateway'
14 set network.wan.dns='$wan_dns'
17 uci_commitverbose "Setup static ip settings for wan" network
19 uci delete meshwizard.wan && uci commit meshwizard