novi upstream verzije 2.8.3
[ossec-hids.git] / src / init / fw-check.sh
index c8fde4c..3c35711 100755 (executable)
@@ -24,9 +24,16 @@ if [ "X${UNAME}" = "XFreeBSD" ]; then
     fi    
 
 # Darwin
-elif [ "X${UNAME}" = "Darwin" ]; then
-    echo "IPFW";
-    FILE="ipfw_mac.sh";
+elif [ "X${UNAME}" = "XDarwin" ]; then
+    # Is pfctl present?
+    which pfctl;
+    if [ $? = 0 ]; then
+        echo "PF";
+        FIlE="pf.sh";
+    else
+        echo "IPFW";
+        FILE="ipfw_mac.sh";
+    fi
         
 elif [ "X${UNAME}" = "XOpenBSD" ]; then
     if [ $? = 0 ]; then