summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-03-11 15:40:07 +0000
committerErmal <eri@pfsense.org>2014-03-11 15:40:27 +0000
commitf0014c64993aaef6172cf758e18444a758b74ae1 (patch)
tree117ee1c32143d20ff0360574bca8a46a7fc162ff
parentce99dba2e692f88b5e7665fdb0750126d3080985 (diff)
downloadpfsense-f0014c64993aaef6172cf758e18444a758b74ae1.zip
pfsense-f0014c64993aaef6172cf758e18444a758b74ae1.tar.gz
Make this a bit more efficient
-rw-r--r--etc/inc/system.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 755eda6..a211461 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1927,9 +1927,11 @@ function system_identify_specific_platform() {
/* the rest of the code only deals with 'embedded' platforms */
if ($g['platform'] != 'nanobsd')
return array('name' => $g['platform'], 'descr' => $g['platform']);
-
- $dmesg = system_get_dmesg_boot();
-
+
+ unset($dmesg);
+ $_gb = exec('/sbin/sysctl -n hw.model', $output);
+ $dmesg = $dmesg[0];
+
if (strpos($dmesg, "PC Engines WRAP") !== false)
return array('name' => 'wrap', 'descr' => gettext('PC Engines WRAP'));
OpenPOWER on IntegriCloud