diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-01 21:38:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-01 21:38:15 +0000 |
commit | 6d2b109d21624c1a76ddb7dccfde4de580a51c0c (patch) | |
tree | 80cefa643422ef88f1a11e7c3cc4743525af4a6d | |
parent | 1ef7b568dbc875be4c2734d1e3df3fc9f0bbb747 (diff) | |
download | pfsense-6d2b109d21624c1a76ddb7dccfde4de580a51c0c.zip pfsense-6d2b109d21624c1a76ddb7dccfde4de580a51c0c.tar.gz |
When a firmware update is in progress, it is very important that we do not go RO.
-rw-r--r-- | etc/inc/config.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 0a1f49f..9492b0b 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -373,6 +373,10 @@ function conf_mount_rw() { if($g['platform'] == "cdrom" or $g['platform'] == "pfSense") return; + /* firmare upgrade in progress */ + if(file_exists($g['varrun_path'] . "/fwup.enabled")) + return; + $status = mwexec("/sbin/mount -u -w {$g['cf_path']}"); if($status <> 0) { if($g['booting']) |