From 2a7177001d1418fc166cf2da790c2f1ec16a1c1c Mon Sep 17 00:00:00 2001 From: Jos Schellevis Date: Mon, 15 Dec 2014 14:58:07 +0000 Subject: [PATCH] platform update to OPNsense for related file --- src/etc/inc/config.lib.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc index e39f23090..bd5c6f5e4 100644 --- a/src/etc/inc/config.lib.inc +++ b/src/etc/inc/config.lib.inc @@ -311,7 +311,7 @@ function conf_mount_rw() { global $g, $config; /* do not mount on cdrom platform */ - if($g['platform'] == "cdrom" or $g['platform'] == "pfSense") + if($g['platform'] == "cdrom" or $g['platform'] == "OPNsense") return; if ((refcount_reference(1000) > 1) && is_writable("/")) @@ -351,7 +351,7 @@ function conf_mount_ro() { /* Do not trust $g['platform'] since this can be clobbered during factory reset. */ $platform = trim(file_get_contents("/usr/local/etc/platform")); /* do not umount on cdrom or pfSense platforms */ - if($platform == "cdrom" or $platform == "pfSense") + if($platform == "cdrom" or $platform == "OPNsense") return; if (refcount_unreference(1000) > 0)