hw-test/scripts/scan-bonding

16 lines
300 B
Bash
Executable file

#!/bin/bash
source scan-netdev
#echo "scan-bonding: Ping test:"
#test-ping | tee $OUTPUT_DIR/test-ping.out \
# | grep error
for BOND_N in {0..4} ; do
BOND=bond$BOND_N
if [[ -d /sys/class/net/$BOND ]] ; then
cp /sys/class/net/$BOND/bonding/slaves \
$OUTPUT_DIR/netdev/$BOND.slaves
fi
done