local ifc ifc=/run/interfaces/${1:-$iface} [[ -f $ifc ]] || return 1 [[ "$(<$ifc)" == up ]] || return 1 return 0 # vim: ft=zsh noet ts=4 sts=4 sw=4