Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
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
|
|
}
|
|
}
|