From: Felix Fietkau Date: Thu, 16 Jan 2025 18:32:51 +0000 (+0100) Subject: mediatek: remove obsolete base-files scripts X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=48e1427ffa867bddc822a463af862b9dacc5bde8;p=openwrt%2Fstaging%2Fblocktrron.git mediatek: remove obsolete base-files scripts Signed-off-by: Felix Fietkau --- diff --git a/target/linux/mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro b/target/linux/mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro deleted file mode 100755 index 9a2ffaeed8..0000000000 --- a/target/linux/mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro +++ /dev/null @@ -1,14 +0,0 @@ -[ 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 - } -} diff --git a/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow b/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow deleted file mode 100644 index 49b1dd1ca6..0000000000 --- a/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow +++ /dev/null @@ -1,6 +0,0 @@ -set_rps_sock_flow() { - echo 1024 > /proc/sys/net/core/rps_sock_flow_entries -} - -boot_hook_add preinit_main set_rps_sock_flow -