diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-04-07 12:33:41 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-04-07 12:33:41 -0400 |
commit | 0c951d9bee2af9a48f297b90a11c9b3911c4ca05 (patch) | |
tree | 77c952002ed9c9b3d0efeab2cfdd7b7f5c1042fb /usr/local | |
parent | 5d7881615de2fbeb44c1f3ab8903b52969538f9c (diff) | |
download | pfsense-0c951d9bee2af9a48f297b90a11c9b3911c4ca05.zip pfsense-0c951d9bee2af9a48f297b90a11c9b3911c4ca05.tar.gz |
Unbreak check if capture is running
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/diag_packet_capture.php | 8 |
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") . "\"> "; else { |