From da82a60fdbee638601875fbbc4ba8260ed1bf267 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 8 Jul 2009 18:47:25 +0200 Subject: Cleanup --- etc/functions/check_ping | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 etc/functions/check_ping (limited to 'etc/functions/check_ping') diff --git a/etc/functions/check_ping b/etc/functions/check_ping deleted file mode 100644 index 015af0b..0000000 --- a/etc/functions/check_ping +++ /dev/null @@ -1,21 +0,0 @@ -## vim:ft=zsh -## check_ping - returns true if a host responds to ICMP echo requests -## Usage: check_ping [-6] -typeset -i ipv6 ret - -while [[ $1 == -* ]] { - case $1 in - -6) ipv6=1 ;; - esac - shift -} - -typeset dst=$1 -shift - -if ((ipv6)) { - ping6 -c 1 $dst &> /dev/null -} else { - ping -c 1 $dst &> /dev/null -} -return -- cgit v1.2.3