diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-03-16 13:28:39 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-03-16 13:28:39 +0100 |
commit | aff70640bfe35f14176b6134359f05d565c83511 (patch) | |
tree | ee8333592e4ef0452ecf49b700c84ce1ebf74975 /usr/local/bin | |
parent | e3e85044d1889a95c4d4a7245b09ca7b80512894 (diff) | |
download | pfsense-aff70640bfe35f14176b6134359f05d565c83511.zip pfsense-aff70640bfe35f14176b6134359f05d565c83511.tar.gz |
Swap if statement, add fields into ipsecpinghosts file
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-x | usr/local/bin/ping_hosts.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/bin/ping_hosts.sh b/usr/local/bin/ping_hosts.sh index 19a6161..c0de5a1 100755 --- a/usr/local/bin/ping_hosts.sh +++ b/usr/local/bin/ping_hosts.sh @@ -68,10 +68,10 @@ for TOPING in $PINGHOSTS ; do THRESHOLD=`echo $TOPING | cut -d"|" -f6` WANTHRESHOLD=`echo $TOPING | cut -d"|" -f7` AF=`echo $TOPING | cut -d"|" -f8` - if [ "$AF" == "inet" ]; then - PINGCMD=ping - else + if [ "$AF" == "inet6" ]; then PINGCMD=ping6 + else + PINGCMD=ping fi echo Processing $DSTIP # Look for a service being down |