+if [ "$wan_proto" == "dhcp" ]; then
+ $dir/helpers/setup_wan_dhcp.sh
+fi
+
+if [ "$lan_proto" == "static" ] && [ -n "$lan_ip4addr" ] && [ -n "$lan_netmask" ]; then
+ $dir/helpers/setup_lan_static.sh
+fi
+
+if [ "$profile_ipv6" == 1 ] && [ "$has_ipv6" = 1 ]; then
+ $dir/helpers/setup_lan_ipv6.sh
+ # Setup auto-ipv6
+ if [ -n "$(echo "$profile_ipv6_config" |grep auto-ipv6)" ]; then
+ $dir/helpers/setup_auto-ipv6.sh
+ fi
+fi
+
+# Setup policyrouting if internet sharing is disabled and wan is not used for olsrd
+# Always disable it first to make sure its disabled when the user decied to share his internet
+uci set freifunk-policyrouting.pr.enable=0
+if [ ! "$general_sharenet" == 1 ] && [ ! "$(uci -q get meshwizard.netconfig.wan_proto)" == "olsr" ]; then
+ $dir/helpers/setup_policyrouting.sh
+fi
+