hw-test/scripts/scan-bonding

17 lines
300 B
Text
Raw Normal View History

2017-01-26 21:43:03 -06:00
#!/bin/bash
source scan-netdev
#echo "scan-bonding: Ping test:"
#test-ping | tee $OUTPUT_DIR/test-ping.out \
# | grep error
2017-01-26 21:43:03 -06:00
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