/usr/share/tcos/scripts/tcos-bottom/55checksumoff is in initramfs-tools-tcos 0.89.86.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/sh
#
if [ "$1" = "prereqs" ]; then
exit 0
fi
quiet=n
. /conf/tcos.conf
. /scripts/functions
. /conf/tcos-run-functions
rxtxoff=$(read_cmdline_var "rxtxoff" "0")
if [ ${rxtxoff} = 1 ]; then
# get list of network interfaces
TCOS_NET_DEVS=$(ls /sys/class/net/|grep -v -e lo -e sit0 -e wmaster -e vmnet -e pan)
# search for network interfaces with link ok status
for dev in $TCOS_NET_DEVS; do
# have link ???
if [ -e /sys/class/net/$dev/carrier ] && \
[ "$(cat /sys/class/net/$dev/carrier 2>/dev/null)" = 1 ] && \
[ "$(/sbin/ethtool $dev| grep -c "Wake-on: g")" = "1" ] ; then
_log "55checksumoff disabling rx, tx protocol checksum on ifaces..."
/sbin/ethtool -K $dev rx off tx off >> /tmp/initramfs.debug 2>&1
fi
done
fi
exit 0
|