diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-01 17:18:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-01 17:18:04 +0000 |
commit | b8dabaddf6eb343cd9d7dd527f8eec9d78f06c0a (patch) | |
tree | b6ee5934d53ca6e747eb34a215b2d65575196886 | |
parent | 1c879ff3fac8b4790b3db70f5c5be0f7be2ccfb8 (diff) | |
download | pfsense-b8dabaddf6eb343cd9d7dd527f8eec9d78f06c0a.zip pfsense-b8dabaddf6eb343cd9d7dd527f8eec9d78f06c0a.tar.gz |
Do not attempt to eval the item if it is a CVS directory. Build script changes accidently left the CVS directories and the the next thing you know was there went the neighboorhood.
-rw-r--r-- | etc/inc/filter.inc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 37080d7..2edfc7a 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -155,15 +155,17 @@ function filter_configure() { foreach ($files as $file) { if($file <> "") { $text = return_filename_as_string("/usr/local/pkg/pf/" . $file); - if($text <> "" and $text <> "CVS") { + if($text <> "") { if(stristr($file, ".sh") == true) { mwexec("/usr/local/pkg/pf/" . $file . " start"); } else { - if($g['booting'] == true) - echo "\t{$file}... "; - eval($text); - if($g['booting'] == true) - echo "done.\n"; + if(stristr($text,"CVS") == false) { + if($g['booting'] == true) + echo "\t{$file}... "; + eval($text); + if($g['booting'] == true) + echo "done.\n"; + } } } } |