From 334e4ab181ac6be7a464ce0b48836a5d390e40fe Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 7 Mar 2009 12:05:15 +0100 Subject: check_ssh: Descriptive commnt --- etc/functions/check_ssh | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/functions/check_ssh') diff --git a/etc/functions/check_ssh b/etc/functions/check_ssh index 26ee9fa..7cd9f25 100644 --- a/etc/functions/check_ssh +++ b/etc/functions/check_ssh @@ -1,4 +1,5 @@ ## vim:ft=zsh +## check_ssh - returns true if a machine is reachable and allowing logins on ssh if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] { return 0 } else { -- cgit v1.2.3