aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-27 22:53:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-27 22:53:21 +0000
commit5e9a9ae0214f6d58f8a3ffd9c22910b36f9f0405 (patch)
tree7abad77371e2aa8fa7f418dfc0c16109db84a3ba /packages/autoconfigbackup/autoconfigbackup.inc
parent4e7e3dc42271d5ecc7d2a2b260b42283c392a598 (diff)
downloadpfsense-packages-5e9a9ae0214f6d58f8a3ffd9c22910b36f9f0405.tar.gz
pfsense-packages-5e9a9ae0214f6d58f8a3ffd9c22910b36f9f0405.tar.bz2
pfsense-packages-5e9a9ae0214f6d58f8a3ffd9c22910b36f9f0405.zip
Mount image RW/RO when needed
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.inc')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc
index 0ea2f18e..e2062ea8 100644
--- a/packages/autoconfigbackup/autoconfigbackup.inc
+++ b/packages/autoconfigbackup/autoconfigbackup.inc
@@ -125,7 +125,9 @@ function upload_config() {
$notice_text .= "Please correct this in Diagnostics -> AutoConfigBackup -> Settings.";
log_error($notice_text);
file_notice("AutoConfigBackup", $notice_text, $notice_text, "");
+ conf_mount_rw();
touch("/cf/conf/autoconfigback.notice");
+ conf_mount_ro();
}
} else {
/* If configuration has changed, upload to pfS */