diff options
author | Scott Ullrich <sullrich@su.local> | 2009-09-22 23:58:58 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-09-23 00:00:38 -0400 |
commit | 6f590d1046d289b43b29f2afbee554518f280bfa (patch) | |
tree | d180475c6923557d3a92227b8350a7b9af5ec3a3 /config/vnstat | |
parent | e7e5f2c7a7b11999da5bd6679bbbc1891e9cd235 (diff) | |
download | pfsense-packages-6f590d1046d289b43b29f2afbee554518f280bfa.tar.gz pfsense-packages-6f590d1046d289b43b29f2afbee554518f280bfa.tar.bz2 pfsense-packages-6f590d1046d289b43b29f2afbee554518f280bfa.zip |
Make NanoBSD friendly
Diffstat (limited to 'config/vnstat')
-rw-r--r-- | config/vnstat/vnstat.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/vnstat/vnstat.inc b/config/vnstat/vnstat.inc index 26581a40..b5ebc878 100644 --- a/config/vnstat/vnstat.inc +++ b/config/vnstat/vnstat.inc @@ -1,5 +1,6 @@ <?php function vnstat_install_deinstall() { + conf_mount_rw(); global $config; // Remove Vnstat package and files exec("cd /var/db/pkg/ && pkg_delete `ls | grep vnstat`"); @@ -21,10 +22,12 @@ function vnstat_install_deinstall() { write_config(); } configure_cron(); + conf_mount_ro(); } function vnstat_install_config() { global $config; + conf_mount_rw(); // Unpack and move Vnstat frontend exec("cd .."); exec("tar -zxovf /usr/local/pkg/vnstat_php_frontend-1.4.1.tar.gz"); @@ -223,7 +226,6 @@ EOF; } fwrite($hf, $config_file); fclose($hf); + conf_mount_ro(); } -?> - - +?>
\ No newline at end of file |