Commit 9fbd5e91 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all:
tar xf ethtool-5.2.tar.xz
cd ethtool-5.2 && ./configure --prefix=/usr
$(MAKE) -C ethtool-5.2
$(MAKE) -C ethtool-5.2 check
$(MAKE) -C ethtool-5.2 install
rm -rf ethtool-5.2
lenovo-t460s: all tcp-segmentation-fix-service
@echo "$$TCP_SEGMENTATION_FIX_SERVICE" > /lib/systemd/system/tcp-segmentation-fix.service
systemctl enable tcp-segmentation-fix.service
tcp-segmentation-fix-service:
define TCP_SEGMENTATION_FIX_SERVICE
[Unit]
Description=Disable buggy hardware TCP segmentation offloading
[Service]
RemainAfterExit=yes
ExecStart=/usr/sbin/ethtool -K eth0 tx off sg off tso off
Type=oneshot
[Install]
WantedBy=multi-user.target
endef
export TCP_SEGMENTATION_FIX_SERVICE
bin
/usr/sbin/.*
bash-completion
/usr/share/bash-completion/.*
man
/usr/share/man/.*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment