summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@G5.homeunix.net>2009-10-12 18:52:48 -0400
committerScott Ullrich <sullrich@G5.homeunix.net>2009-10-12 18:53:33 -0400
commitd5d5364f2db7704380fd676d86bf3d695000e919 (patch)
treebee88dfb24867566e6ce9e9587fef3bb9e782109 /etc/inc
parent1215dada190f8fbebaafc2329176405fd5e801d5 (diff)
downloadpfsense-d5d5364f2db7704380fd676d86bf3d695000e919.zip
pfsense-d5d5364f2db7704380fd676d86bf3d695000e919.tar.gz
Do not allow mounting of RO mode when the firmware update manual mode is engaged (RW)
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 dd8236b..7bbfa87 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -463,6 +463,10 @@ function conf_mount_ro() {
if(file_exists($g['varrun_path'] . "/firmware.lock"))
return;
+ /* Disk mounted RW (NanoBSD) */
+ if(file_exists($g['varrun_path'] . "/fwup.enabled";))
+ return;
+
/* do not umount if generating ssh keys */
if(file_exists("/tmp/keys_generating"))
return;
OpenPOWER on IntegriCloud