2017-01-26 21:43:03 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source scan-netdev
|
|
|
|
|
|
|
|
#echo "scan-bonding: Ping test:"
|
2017-02-08 21:15:43 -06:00
|
|
|
#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
|
|
|
|
|