diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-02-09 19:52:10 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-02-09 19:52:10 -0500 |
commit | 92646161cacbc52c937b97430babbc0b1319cccc (patch) | |
tree | 5f5fc289df21b996704d18e3cf583ceccb32721e /config/snort/snort.inc | |
parent | 933bc7e9726c4df47bea5d313c2b58c71833d5fe (diff) | |
download | pfsense-packages-92646161cacbc52c937b97430babbc0b1319cccc.tar.gz pfsense-packages-92646161cacbc52c937b97430babbc0b1319cccc.tar.bz2 pfsense-packages-92646161cacbc52c937b97430babbc0b1319cccc.zip |
Show extraction progress
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r-- | config/snort/snort.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 8e619d62..e3497770 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -633,7 +633,15 @@ function extract_snort_rules_md5($tmpfname) { } mkdir("/usr/local/etc/snort/rules/"); $cmd = "/usr/bin/tar xzf {$tmpfname}/{$snort_filename} -C /usr/local/etc/snort/"; - exec($cmd); + $handle = popen("{$cmd} 2>&1", 'r'); + while(!feof($handle)) { + $buffer = fgets($handle); + echo "$buffer\n"; + ob_flush(); + flush(); + } + pclose($handle); + if(!$console_mode) { $static_output = gettext("Snort rules extracted."); update_all_status($static_output); |