#!/bin/bash

# 检测Bond口是不是up
if [ -d "/sys/class/net/bond0" ]; then
	if [[ $(cat /sys/class/net/bond0/operstate| grep -c up) -eq 1 ]];then
		echo '[{"value":0,"tags":"iface=bond0"}]'
	else
		echo '[{"value":1,"tags":"iface=bond0"}]'
	fi
else
	exit 0
fi

exit 0
