summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-03-16 13:28:39 +0100
committerSeth Mos <seth.mos@dds.nl>2011-03-16 13:28:39 +0100
commitaff70640bfe35f14176b6134359f05d565c83511 (patch)
treeee8333592e4ef0452ecf49b700c84ce1ebf74975 /usr/local/bin
parente3e85044d1889a95c4d4a7245b09ca7b80512894 (diff)
downloadpfsense-aff70640bfe35f14176b6134359f05d565c83511.zip
pfsense-aff70640bfe35f14176b6134359f05d565c83511.tar.gz
Swap if statement, add fields into ipsecpinghosts file
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/ping_hosts.sh6
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
OpenPOWER on IntegriCloud