summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-23 06:12:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-23 06:12:36 +0000
commit3c9b290cfe52b8cb5a32d47578a7680b8925784b (patch)
treeb099380a6cae029a4e06a7237e4b2eab9ea77df8 /etc/inc
parent4cac6f775d71bf98bd8a753b7504857aed7fe7e8 (diff)
downloadpfsense-3c9b290cfe52b8cb5a32d47578a7680b8925784b.zip
pfsense-3c9b290cfe52b8cb5a32d47578a7680b8925784b.tar.gz
Do not allow ro mount when an upgrade is in progress
Diffstat (limited to 'etc/inc')
-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 1a032a1..656f5ff 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -479,6 +479,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