mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
66458c49aa
Bump the target to v4.19. Add a patch with additional eth driver fixes/features that MTK provided aswell as the driver for the new mt7530 switch. Signed-off-by: John Crispin <john@phrozen.org>
15 lines
341 B
Plaintext
Executable File
15 lines
341 B
Plaintext
Executable File
[ ifup = "$ACTION" ] && {
|
|
[ -n "$DEVICE" ] && {
|
|
if [ "$INTERFACE" == "lan" ]; then
|
|
if [ -f /usr/sbin/ethtool ]; then
|
|
ifname=eth0
|
|
lan_ip=`uci -q get network.lan.ipaddr`
|
|
ethdrv=`ethtool -i $ifname | grep mtk_soc_eth`
|
|
[ -n "$ethdrv" ] && {
|
|
ethtool -N $ifname flow-type tcp4 dst-ip $lan_ip loc 0
|
|
}
|
|
fi
|
|
fi
|
|
}
|
|
}
|