#! /usr/bin/env bash
#
# is-alive <host>

. `dirname $0`/broctl-config.sh

cmd_linux='ping -c 1 -W 1'
cmd_bsd='ping -q -t 1 -o'

if [ "${os}" == "linux" ]; then
   cmd=$cmd_linux
else
   cmd=$cmd_bsd
fi

$cmd $1 >/dev/null 2>&1
