diff options
author | Ermal <eri@pfsense.org> | 2014-03-11 15:40:07 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-03-11 15:40:27 +0000 |
commit | f0014c64993aaef6172cf758e18444a758b74ae1 (patch) | |
tree | 117ee1c32143d20ff0360574bca8a46a7fc162ff /etc | |
parent | ce99dba2e692f88b5e7665fdb0750126d3080985 (diff) | |
download | pfsense-f0014c64993aaef6172cf758e18444a758b74ae1.zip pfsense-f0014c64993aaef6172cf758e18444a758b74ae1.tar.gz |
Make this a bit more efficient
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 8 |
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')); |