summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-05-23 12:12:44 -0400
committerjim-p <jimp@pfsense.org>2017-05-23 12:13:05 -0400
commit81de04ae4554274618279dd43ec92a7a4268bdda (patch)
tree1caa2e0033e31e77e304fb795e79ec6e5d983051 /src
parent97b5bfe35a46651762f9037b113ed72de7fc1c27 (diff)
downloadpfsense-81de04ae4554274618279dd43ec92a7a4268bdda.zip
pfsense-81de04ae4554274618279dd43ec92a7a4268bdda.tar.gz
Add NGID to status.php
(cherry picked from commit fcc24426ab16b02ffc77bc7c9ee040d76dd987a2) (cherry picked from commit 2e7f67b274960210ef2d606f72b7bfee22c1b1c7)
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/status.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php
index 3e2ec35..fc2c632 100644
--- a/src/usr/local/www/status.php
+++ b/src/usr/local/www/status.php
@@ -201,6 +201,14 @@ function get_firewall_info() {
if (!empty($platform['descr'])) {
$firewall_info .= "<br/>Platform: " . htmlspecialchars($platform['descr']);
}
+
+ if (file_exists('/var/db/uniqueid')) {
+ $ngid = file_get_contents('/var/db/uniqueid');
+ if (!empty($ngid)) {
+ $firewall_info .= "<br/>Netgate Device ID: " . htmlspecialchars($ngid);
+ }
+ }
+
$serial = system_get_serial();
if (!empty($serial)) {
$firewall_info .= "<br/>SN/UUID: " . htmlspecialchars($serial);
OpenPOWER on IntegriCloud