diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-04 23:04:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-04 23:04:11 +0000 |
commit | ac4878f9aecceb2d9d6e2028d8ee5c4aac25ab60 (patch) | |
tree | 10875318a364e85cf0ac75995148e0c93c78d6c8 /etc/inc | |
parent | a6b0fbf76d045a1e98e990dea5536836dde68c55 (diff) | |
download | pfsense-ac4878f9aecceb2d9d6e2028d8ee5c4aac25ab60.zip pfsense-ac4878f9aecceb2d9d6e2028d8ee5c4aac25ab60.tar.gz |
Add option which checks for /tmp/ro_root_mount to alert system that we need a rw mount on root
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index ab063be..e397a2a 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -316,7 +316,10 @@ function conf_mount_ro() { /* do not umount on cdrom platform */ if($g['platform'] == "cdrom") - return; + return; + + if(file_exists("/tmp/ro_root_mount")) + return; mwexec("/sbin/umount -f {$g['cf_path']}"); mwexec("/sbin/mount -r {$g['cf_path']}"); |