summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-30 23:16:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-30 23:16:49 +0000
commitaf491fe276776c9fbf1062d428c4b686db5b280e (patch)
tree3e2b09914895f7fc3ea8835f5ceec8e1e6857cbd /etc
parent557ac55e329057bb517bc47af3f69d72118464ca (diff)
downloadpfsense-af491fe276776c9fbf1062d428c4b686db5b280e.zip
pfsense-af491fe276776c9fbf1062d428c4b686db5b280e.tar.gz
Really run /usr/local/pkg/pf files when needed
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 91a8a98..42e88b4 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -209,18 +209,16 @@ function filter_configure_sync() {
$files = return_dir_as_array("/usr/local/pkg/pf/");
if($files <> "") {
foreach ($files as $file) {
- if($file <> "") {
+ if($file) {
$text = file_get_contents("/usr/local/pkg/pf/" . $file);
if($text) {
if(stristr($file, ".sh") == true) {
mwexec("/usr/local/pkg/pf/" . $file . " start");
} else {
- if(stristr($file,"CVS") == false) {
+ if(!stristr($file,"CVS")) {
if($g['booting'] == true)
echo "\t{$file}... ";
eval($text);
- if($g['booting'] == true)
- echo "done.\n";
}
}
}
OpenPOWER on IntegriCloud