diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-15 18:10:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-15 18:10:31 +0000 |
commit | 012472a4005a0333b1113dd2f06ae316d646fc93 (patch) | |
tree | 7bc033e8ee03bdb8e8e4a123184f039cee583825 /etc | |
parent | a78b7955864de7c66b6abb882ae92f2f1e3cb710 (diff) | |
download | pfsense-012472a4005a0333b1113dd2f06ae316d646fc93.zip pfsense-012472a4005a0333b1113dd2f06ae316d646fc93.tar.gz |
* Only run the commands.txt file if it exists.
* Unlink afterwards
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
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"); |