#!/bin/sh /etc/rc.common

START=10

boot() {
	brctl addbr inf
	brctl addif inf eth0
	ifconfig eth0 up
	ifconfig eth1 up
	local inf_mac=$(uci get network.lan.macaddr)
	ifconfig inf hw ether "${inf_mac}"
	ifconfig inf up

	#Solve the problem that igmp snooping causes report packet loss
	echo 0 > /sys/devices/virtual/net/inf/bridge/multicast_snooping
	#fix bug 722261 Enable the ignore_routes_with_linkdown switch to disable linkdown routes
	#Note If the phy port is changed, the corresponding NIC parameters must be modified
	echo 1 > /proc/sys/net/ipv4/conf/default/ignore_routes_with_linkdown
	echo 1 > /proc/sys/net/ipv4/conf/eth1/ignore_routes_with_linkdown
}
