add eth1 offloading on helios64

This commit is contained in:
Aaron Murray 2020-10-27 05:58:34 -05:00
parent 35bf20999a
commit dbfe2715f5

View File

@ -13,7 +13,7 @@
# https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
#
# version: 1.2.10
# version: 1.2.11
#
if [[ $(id -u) -ne 0 ]]; then
@ -441,6 +441,10 @@ fi
# remove networkmanager and dhcpcd5 then configure networkd
if [ ${version} -gt 4 ] && [ ${skipNet} -ne 1 ]; then
if [ "${BOARD}" = "helios64" ]; then
echo -e '#!/bin/sh\n/usr/sbin/ethtool --offload eth1 rx off tx off' > /usr/lib/networkd-dispatcher/routable.d/10-disable-offloading
fi
defLink="/etc/systemd/network/99-default.link"
if [ -e "${defLink}" ]; then
rm -fv "${defLink}"