summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/config.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index c99a8ea..e0872e4 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -518,6 +518,10 @@ function conf_mount_ro() {
if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
return;
+ /* If a firmware upgrade is in progress, do not mount ro */
+ if(file_exists($d_firmwarelock_path))
+ return;
+
/* sync data, then force a remount of /cf */
mwexec("/bin/sync");
mwexec("/sbin/mount -u -r -f {$g['cf_path']}");
OpenPOWER on IntegriCloud