aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pfstat.xml
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-02-26 04:35:32 +0000
committerColin Smith <colin@pfsense.org>2005-02-26 04:35:32 +0000
commit90c54d668f3b0c5bcd7767e11da5aa1479b4861f (patch)
tree397d3c5489f7bf4e2c1e8aedcde8e4ab0bcf624f /packages/pfstat.xml
parent0f57225f3c0364ae17ccc5a79d18dd719e7e4658 (diff)
downloadpfsense-packages-90c54d668f3b0c5bcd7767e11da5aa1479b4861f.tar.gz
pfsense-packages-90c54d668f3b0c5bcd7767e11da5aa1479b4861f.tar.bz2
pfsense-packages-90c54d668f3b0c5bcd7767e11da5aa1479b4861f.zip
* Add config locking and remounting.
* FreeRADIUS typo correction. * Change <name> in powerdns.xml: nmap -> powerdns
Diffstat (limited to 'packages/pfstat.xml')
-rw-r--r--packages/pfstat.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/pfstat.xml b/packages/pfstat.xml
index 6e3fd70e..f95e5b19 100644
--- a/packages/pfstat.xml
+++ b/packages/pfstat.xml
@@ -206,6 +206,8 @@
</fields>
<custom_php_command_before_form>
function sync_package() {
+ conf_mount_rw();
+ config_lock();
global $config;
$fout = fopen("/usr/local/etc/pfstat.conf","w");
if($config['installedpackages']['pfstat']['config'] != "") {
@@ -250,6 +252,8 @@
}
}
fclose($fout);
+ conf_mount_ro();
+ config_unlock();
}
sync_package();
</custom_php_command_before_form>