diff --git a/defaults.inc b/defaults.inc index 8864c10e..fb11c9a0 100755 --- a/defaults.inc +++ b/defaults.inc @@ -114,8 +114,12 @@ CERT-CHECK(){ } CHECK_HOST(){ - ping -c 3 ${1} > /dev/null 2>&1 - if [ $? -ne 0 ]; then + if [ -z ${1+x} ]; then + ping -c 3 ${1} > /dev/null 2>&1 + if [ $? -ne 0 ]; then + echo false + fi + else echo false fi }