diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2006-01-22 10:13:06 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2006-01-22 10:13:06 +0000 |
commit | 20185945628dcdf1923d201dd9b85afcfe8fc118 (patch) | |
tree | 1cacb11ed2c41c855e8f618c68ad6737df02310e /science/openfoam/files/patch-bin_foamSystemCheck | |
parent | SHA256ify (manually done and checked) (diff) |
The OpenFOAM (Open Field Operation and Manipulation) CFD Toolbox can simulate
anything from complex fluid flows involving chemical reactions, turbulence and
heat transfer, to solid dynamics, electromagnetics and the pricing of financial
options.
WWW: http://www.opencfd.co.uk/openfoam/index.html
PR: ports/91886
Submitted by: thierry
Diffstat (limited to 'science/openfoam/files/patch-bin_foamSystemCheck')
-rw-r--r-- | science/openfoam/files/patch-bin_foamSystemCheck | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/science/openfoam/files/patch-bin_foamSystemCheck b/science/openfoam/files/patch-bin_foamSystemCheck new file mode 100644 index 000000000000..5b5c4cd5b2e8 --- /dev/null +++ b/science/openfoam/files/patch-bin_foamSystemCheck @@ -0,0 +1,23 @@ +--- bin/foamSystemCheck.orig Tue Jun 21 18:07:04 2005 ++++ bin/foamSystemCheck Mon Dec 26 16:03:08 2005 +@@ -119,6 +119,20 @@ + RESULT="Ping_not_installed_in_usual_path" + fi + ;; ++ FreeBSD) ++ if [ -x '/sbin/ping' ] ; then ++ PINGTEST=`/sbin/ping -c 1 $1 2>&1` ++ if [ -n "`echo $PINGTEST | grep '1 packets received'`" ] ; then ++ RESULT="Successful" ++ elif [ -n "`echo $PINGTEST | grep 'unknown host'`" ] ; then ++ RESULT='Unknown host' ++ else ++ RESULT='Networking not set' ++ fi ++ else ++ RESULT="Ping_not_installed_in_usual_path" ++ fi ++ ;; + # OSF*) + # if [ -x '/usr/sbin/ping' ] ; then + # PINGTEST=`ping -t 3 -c 1 $1 2>&1` |