mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
SG-23* serial number is igb0 mac address
This commit is contained in:
parent
62174481d7
commit
7b084fd314
@ -2322,9 +2322,18 @@ EOD;
|
||||
}
|
||||
|
||||
function system_get_serial() {
|
||||
$platform = system_identify_specific_platform();
|
||||
|
||||
unset($output);
|
||||
$_gb = exec('/bin/kenv -q smbios.system.serial 2>/dev/null', $output);
|
||||
$serial = $output[0];
|
||||
if ($platform['name'] == 'Turbot Dual-E') {
|
||||
$if_info = pfSense_get_interface_addresses('igb0');
|
||||
if (!empty($if_info['hwaddr'])) {
|
||||
$serial = str_replace(":", "", $if_info['hwaddr']);
|
||||
}
|
||||
} else {
|
||||
$_gb = exec('/bin/kenv smbios.system.serial 2>/dev/null', $output);
|
||||
$serial = $output[0];
|
||||
}
|
||||
|
||||
$vm_guest = get_single_sysctl('kern.vm_guest');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user