#!/bin/bash

TARGET=${1:-"ldap"}

error()
{
    errno=$1
    msg=${2:-"error $1"}
    echo "$msg" >&2
    exit $errno
}

MSG=`sc_cmd has_net_connection "$TARGET"` || error $? "$MSG"
exit 0
