Your IP : 216.73.216.155


Current Path : /usr/share/doc/ifupdown/contrib/
Upload File :
Current File : //usr/share/doc/ifupdown/contrib/ifstate

#!/bin/sh

iface="$1"
if [ -z "$iface" ] ; then
	echo "Usage: $0 IFACE"
	exit 1
fi

if ifconfig "$iface" | grep -Fw UP >/dev/null
then
	echo UP
else
	echo DOWN
fi