From 5e9a9ae0214f6d58f8a3ffd9c22910b36f9f0405 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 27 Oct 2008 22:53:21 +0000 Subject: Mount image RW/RO when needed --- packages/autoconfigbackup/autoconfigbackup.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/autoconfigbackup/autoconfigbackup.inc') 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 */ -- cgit v1.2.3