summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-03-28 15:48:07 -0300
committerRenato Botelho <renato@netgate.com>2016-03-28 15:48:07 -0300
commit24d4fddeb35eb5c3d0b1e2408f094218343653de (patch)
tree9d95910838af43692b0957b04a30ea8ed00e9b14 /src/etc
parentcda1c23c7b98d4a31d438d846c8c8445e86d9fcb (diff)
downloadpfsense-24d4fddeb35eb5c3d0b1e2408f094218343653de.zip
pfsense-24d4fddeb35eb5c3d0b1e2408f094218343653de.tar.gz
Rename variable to a name that make sense
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/system.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index 1304e40..f700b2f 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -2216,29 +2216,29 @@ function system_identify_specific_platform() {
return array('name' => $g['platform'], 'descr' => $g['platform']);
}
- $dmesg = get_single_sysctl('hw.model');
+ $hw_model = get_single_sysctl('hw.model');
- if (strpos($dmesg, "PC Engines WRAP") !== false) {
+ if (strpos($hw_model, "PC Engines WRAP") !== false) {
return array('name' => 'wrap', 'descr' => gettext('PC Engines WRAP'));
}
- if (strpos($dmesg, "PC Engines ALIX") !== false) {
+ if (strpos($hw_model, "PC Engines ALIX") !== false) {
return array('name' => 'alix', 'descr' => gettext('PC Engines ALIX'));
}
- if (preg_match("/Soekris net45../", $dmesg, $matches)) {
+ if (preg_match("/Soekris net45../", $hw_model, $matches)) {
return array('name' => 'net45xx', 'descr' => $matches[0]);
}
- if (preg_match("/Soekris net48../", $dmesg, $matches)) {
+ if (preg_match("/Soekris net48../", $hw_model, $matches)) {
return array('name' => 'net48xx', 'descr' => $matches[0]);
}
- if (preg_match("/Soekris net55../", $dmesg, $matches)) {
+ if (preg_match("/Soekris net55../", $hw_model, $matches)) {
return array('name' => 'net55xx', 'descr' => $matches[0]);
}
- unset($dmesg);
+ unset($hw_model);
$dmesg_boot = system_get_dmesg_boot();
if (strpos($dmesg_boot, "PC Engines ALIX") !== false) {
OpenPOWER on IntegriCloud