summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-04-07 12:33:41 -0400
committerScott Ullrich <sullrich@pfsense.org>2011-04-07 12:33:41 -0400
commit0c951d9bee2af9a48f297b90a11c9b3911c4ca05 (patch)
tree77c952002ed9c9b3d0efeab2cfdd7b7f5c1042fb /usr
parent5d7881615de2fbeb44c1f3ab8903b52969538f9c (diff)
downloadpfsense-0c951d9bee2af9a48f297b90a11c9b3911c4ca05.zip
pfsense-0c951d9bee2af9a48f297b90a11c9b3911c4ca05.tar.gz
Unbreak check if capture is running
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_packet_capture.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index 02d8217..0f9d8fb 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -194,13 +194,15 @@ include("fbegin.inc");
<?php
/* check to see if packet capture tcpdump is already running */
- $processcheck = (trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep {$fn} | /usr/bin/grep -v pflog")));
+ $processcheck = (trim(shell_exec("/bin/ps axw -O pid= | /usr/bin/grep tcpdump | /usr/bin/grep {$fn} | /usr/bin/grep -v pflog | wc -")));
$processisrunning = false;
- if ($processcheck != false)
+ if ($processcheck != "")
$processisrunning = true;
-
+ else
+ $processisrunning = false;
+
if (($action == gettext("Stop") or $action == "") and $processisrunning != true)
echo "<input type=\"submit\" name=\"startbtn\" value=\"" . gettext("Start") . "\">&nbsp;";
else {
OpenPOWER on IntegriCloud