summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2011-03-29 13:36:41 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2011-03-29 13:36:41 -0300
commitbca0472d5589beefe197858dfe10739108196c62 (patch)
tree7ae388840dbc925549dd7cef7b38bc24df225703 /etc/inc/config.lib.inc
parent152ab4d0c036889d5d983cef0f612c2dcf211e7b (diff)
parenta5187d43751edccce1aceb7efec96aae91d616dc (diff)
downloadpfsense-bca0472d5589beefe197858dfe10739108196c62.zip
pfsense-bca0472d5589beefe197858dfe10739108196c62.tar.gz
Merge remote-tracking branch 'mainline/master' into inc
Conflicts: etc/inc/voucher.inc
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r--etc/inc/config.lib.inc11
1 files changed, 4 insertions, 7 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index b319ef8..9a5bd12 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -301,16 +301,13 @@ EOD;
* null
******/
/* mount flash card read/write */
-function conf_mount_rw($nobootcheck = false) {
+function conf_mount_rw() {
global $g;
/* do not mount on cdrom platform */
if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
return;
- if($g['booting'] && !$nobootcheck)
- return;
-
if (refcount_reference(1000) > 1)
return;
@@ -324,7 +321,7 @@ function conf_mount_rw($nobootcheck = false) {
/* if the platform is soekris or wrap or pfSense, lets mount the
* compact flash cards root.
- */
+ */
$status = mwexec("/sbin/mount -u -w -o sync,noatime /");
/* we could not mount this correctly. kick off fsck */
if($status <> 0) {
@@ -342,14 +339,14 @@ function conf_mount_rw($nobootcheck = false) {
* RESULT
* null
******/
-function conf_mount_ro($nobootcheck = false) {
+function conf_mount_ro() {
global $g;
/* do not umount on cdrom or pfSense platforms */
if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
return;
- if($g['booting'] && !$nobootcheck)
+ if($g['booting'])
return;
if (refcount_unreference(1000) > 0)
OpenPOWER on IntegriCloud