diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-02-04 08:14:30 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-02-04 08:14:30 -0200 |
commit | 6d043a1db3c24b71dc0efe09dd4555787140caa9 (patch) | |
tree | 2144bf373b99afdc5d0977a16815a790b1fb48d4 /etc/inc | |
parent | 0fcf26e41341f46c911b116e952efa9fc3d961e8 (diff) | |
download | pfsense-6d043a1db3c24b71dc0efe09dd4555787140caa9.zip pfsense-6d043a1db3c24b71dc0efe09dd4555787140caa9.tar.gz |
In last case, use dmesg.boot do detect ALIX boards when hw.model is not enough
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 3b0a8bb..bdd65a6 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -2066,7 +2066,14 @@ function system_identify_specific_platform() { if (preg_match("/Soekris net55../", $dmesg, $matches)) return array('name' => 'net55xx', 'descr' => $matches[0]); - + + unset($dmesg); + + $dmesg_boot = system_get_dmesg_boot(); + if (strpos($dmesg_boot, "PC Engines ALIX") !== false) + return array('name' => 'alix', 'descr' => gettext('PC Engines ALIX')); + unset($dmesg_boot); + /* unknown embedded platform */ return array('name' => 'embedded', 'descr' => gettext('embedded (unknown)')); } |