summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-15 18:10:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-15 18:10:31 +0000
commit012472a4005a0333b1113dd2f06ae316d646fc93 (patch)
tree7bc033e8ee03bdb8e8e4a123184f039cee583825 /etc/inc/filter.inc
parenta78b7955864de7c66b6abb882ae92f2f1e3cb710 (diff)
downloadpfsense-012472a4005a0333b1113dd2f06ae316d646fc93.zip
pfsense-012472a4005a0333b1113dd2f06ae316d646fc93.tar.gz
* Only run the commands.txt file if it exists.
* Unlink afterwards
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index cb387be..178435d 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -241,7 +241,10 @@ function filter_configure_sync() {
fwrite($fda, $afcr . "\n");
fclose($fda);
}
- mwexec("sh /tmp/commands.txt &");
+ if(file_exists("/tmp/commands.txt")) {
+ mwexec("sh /tmp/commands.txt &");
+ unlink("sh /tmp/commands.txt");
+ }
update_filter_reload_status("Syncing CARP data");
OpenPOWER on IntegriCloud