if [ "`ifconfig | grep -v "^\s" | grep '^'$1'\b'`" ]; then echo true; else echo false; fi;