diff options
author | Scott Ullrich <sullrich@pfSense.org> | 2009-12-23 21:55:43 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfSense.org> | 2009-12-23 21:55:43 -0500 |
commit | ec98a89d0dacb0b91bb8263a25616089c88683ce (patch) | |
tree | 0f816ea65db8841fb642a594d17419a380ff7c92 /etc/inc/filter.inc | |
parent | 013ac6325b8037ae44b2035163fff75334832b0b (diff) | |
download | pfsense-ec98a89d0dacb0b91bb8263a25616089c88683ce.zip pfsense-ec98a89d0dacb0b91bb8263a25616089c88683ce.tar.gz |
Handle cases where no .inc files are present /usr/local/pkg/
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 5bc89b3..17e140c 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -240,6 +240,8 @@ function filter_configure_sync() { if(is_dir("/usr/local/pkg")) { $files = split("\n", trim(`ls /usr/local/pkg/*.inc`)); foreach($files as $pkg_inc) { + if($pkg_inc == "ls: No match.") + continue; update_filter_reload_status("Checking for early PF hooks in package {$pkg}"); require_once($pkg_inc); $pkg = basename($pkg_inc); @@ -268,6 +270,8 @@ function filter_configure_sync() { if(is_dir("/usr/local/pkg")) { $files = split("\n", trim(`ls /usr/local/pkg/*.inc`)); foreach($files as $pkg_inc) { + if($pkg_inc == "ls: No match.") + continue; update_filter_reload_status("Checking for late PF hooks in package {$pkg}"); require_once($pkg_inc); $pkg = basename($pkg_inc); @@ -1230,6 +1234,8 @@ EOD; if(is_dir("/usr/local/pkg/")) { $files = split("\n", trim(`ls /usr/local/pkg/*.inc`)); foreach($files as $pkg_inc) { + if($pkg_inc == "ls: No match.") + continue; update_filter_reload_status("Checking for filter hooks in package {$pkg}"); require_once($pkg_inc); $pkg = basename($pkg_inc); @@ -1701,6 +1707,8 @@ function filter_rules_generate() { if(is_dir("/usr/local/pkg")) { $files = split("\n", trim(`ls /usr/local/pkg/*.inc`)); foreach($files as $pkg_inc) { + if($pkg_inc == "ls: No match.") + continue; update_filter_reload_status("Checking for filter hooks in package {$pkg}"); require_once($pkg_inc); $pkg = basename($pkg_inc); |