#!/bin/bash
# Check if bonding working.

#check if bonding is used.
/sbin/ifconfig bond0 2> /dev/null 1> /dev/null
[ ! "$?" == "0" ] && exit 0

#verify speed
S=`grep -i speed /proc/net/bonding/bond0 | sort -u | wc -l`
if [ "$S" == "1" ]; then
	exit 0
else
	exit 1
fi
