summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/interfaces.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r--src/etc/inc/interfaces.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 9065ea4..9d1ddd8 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -3272,8 +3272,13 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
interface_wireless_configure($realif, $wancfg, $wancfg['wireless']);
}
+ /* Get the vendor MAC. Use source dependent upon whether or not booting. */
$current_mac = get_interface_mac($realhwif);
- $vendor_mac = get_interface_vendor_mac($realhwif);
+ if (platform_booting()) {
+ $vendor_mac = $current_mac;
+ } else {
+ $vendor_mac = get_interface_vendor_mac($realhwif);
+ }
$mac_addr = $wancfg['spoofmac'] ?: $vendor_mac;
/*
* Don't try to reapply the MAC if it's already applied.
OpenPOWER on IntegriCloud