diff options
author | Ermal <eri@pfsense.org> | 2014-03-14 20:35:39 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-03-14 20:35:39 +0000 |
commit | 703b1ce1c5aeb05f34948624f5e47d6495d6bc6b (patch) | |
tree | 6cddb6633c29898ca22632a4bb61fdcae064de05 /etc/inc | |
parent | e1d68dde59717fc5f125796f07070a654e28ec43 (diff) | |
download | pfsense-703b1ce1c5aeb05f34948624f5e47d6495d6bc6b.zip pfsense-703b1ce1c5aeb05f34948624f5e47d6495d6bc6b.tar.gz |
Correct variable name, while here unset some large var
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index a211461..ae0c18e 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1769,7 +1769,7 @@ function system_dmesg_save() { } $dmesg = ""; - exec("/sbin/dmesg", $dmesg); + $_gb = exec("/sbin/dmesg", $dmesg); /* find last copyright line (output from previous boots may be present) */ $lastcpline = 0; @@ -1789,6 +1789,7 @@ function system_dmesg_save() { fwrite($fd, $dmesg[$i] . "\n"); fclose($fd); + unset($dmesg); return 0; } @@ -1928,9 +1929,9 @@ function system_identify_specific_platform() { if ($g['platform'] != 'nanobsd') return array('name' => $g['platform'], 'descr' => $g['platform']); - unset($dmesg); + unset($output); $_gb = exec('/sbin/sysctl -n hw.model', $output); - $dmesg = $dmesg[0]; + $dmesg = $output[0]; if (strpos($dmesg, "PC Engines WRAP") !== false) return array('name' => 'wrap', 'descr' => gettext('PC Engines WRAP')); |