diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-30 14:33:29 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-30 14:33:37 -0300 |
commit | 2344bed478676b498a014dcec618db37e3422fd1 (patch) | |
tree | f278a4652a311ce1935d40e626ec4310b45737b6 /src/etc/inc/config.lib.inc | |
parent | c580e34c6fe24107817d6a72956e77b23f043beb (diff) | |
download | pfsense-2344bed478676b498a014dcec618db37e3422fd1.zip pfsense-2344bed478676b498a014dcec618db37e3422fd1.tar.gz |
Use product_name global variable in more places
Diffstat (limited to 'src/etc/inc/config.lib.inc')
-rw-r--r-- | src/etc/inc/config.lib.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc index cda88a6..0ea97b3 100644 --- a/src/etc/inc/config.lib.inc +++ b/src/etc/inc/config.lib.inc @@ -326,7 +326,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'] == $g['product_name']) { return; } @@ -342,7 +342,7 @@ function conf_mount_rw() { $status = mwexec("/sbin/mount -u -w -o sync,noatime {$g['cf_path']}"); } - /* if the platform is soekris or wrap or pfSense, lets mount the + /* if the platform is soekris or wrap or $product, lets mount the * compact flash cards root. */ $status = mwexec("/sbin/mount -u -w -o sync,noatime /"); @@ -367,7 +367,7 @@ function conf_mount_ro() { /* Do not trust $g['platform'] since this can be clobbered during factory reset. */ $platform = trim(file_get_contents("/etc/platform")); /* do not umount on cdrom or pfSense platforms */ - if ($platform == "cdrom" or $platform == "pfSense") { + if ($platform == "cdrom" or $platform == $g['product_name']) { return; } |