]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: avoid redundant configuration of MAC addresses 21644/head
authorJan Hoffmann <jan@3e8.eu>
Thu, 22 Jan 2026 19:30:10 +0000 (20:30 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 10 Feb 2026 00:39:52 +0000 (01:39 +0100)
commit08ab732b25de8dd1643837d4432be2f1e6856f69
tree0ec2d6ed56ba74c2d64bacffb44bde8409db803e
parenta539bc00e6d39f6528074b0dc9bbb6cdcbf98a95
realtek: avoid redundant configuration of MAC addresses

Only configure the eth0 MAC address when it is not already done in the
device tree. To do this, create a new variable "eth0_mac".

Also avoid setting "label_mac" for devices already having it defined in
the device tree.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/21644
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/base-files/etc/board.d/02_network