Commit 2a717700 authored by Jos Schellevis's avatar Jos Schellevis

platform update to OPNsense for related file

parent c3a31bad
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment