2016-11-16 22:47:26 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
F=/sys/class/net/$IFACE/bonding/slaves
|
|
|
|
[ -f "$F" ] || exit 0
|
|
|
|
|
|
|
|
for slave in `cat "$F"`; do
|
|
|
|
ip link set $slave up
|
2017-01-18 01:12:27 +01:00
|
|
|
# Disable offloading as it interferes with shaping
|
2017-07-18 20:17:22 +02:00
|
|
|
ethtool -K $slave gso off gro off tso off
|
2016-11-16 22:47:26 +01:00
|
|
|
done
|