[openwrt/openwrt] realtek: remove MAC assignment default case in 02_network
LEDE Commits
lede-commits at lists.infradead.org
Mon Feb 9 16:40:28 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a539bc00e6d39f6528074b0dc9bbb6cdcbf98a95
commit a539bc00e6d39f6528074b0dc9bbb6cdcbf98a95
Author: Jan Hoffmann <jan at 3e8.eu>
AuthorDate: Thu Jan 22 20:15:09 2026 +0100
realtek: remove MAC assignment default case in 02_network
Explicitly specify all devices where the MAC address is configured based
on the U-Boot environment.
This change makes it clearer which devices use this method. Also makes
things simpler for any future devices which handle MAC address
configuration entirely via device tree.
Signed-off-by: Jan Hoffmann <jan at 3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/21644
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../realtek/base-files/etc/board.d/02_network | 49 +++++++++++++++++++++-
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/target/linux/realtek/base-files/etc/board.d/02_network b/target/linux/realtek/base-files/etc/board.d/02_network
index f08579281e..b06829c3d0 100644
--- a/target/linux/realtek/base-files/etc/board.d/02_network
+++ b/target/linux/realtek/base-files/etc/board.d/02_network
@@ -101,7 +101,54 @@ realtek_setup_macs()
label_mac="$lan_mac"
lan_mac_start=$lan_mac
;;
- *)
+ allnet,all-sg8208m|\
+ apresia,aplgs120gtss|\
+ d-link,dgs-1210-10mp-f|\
+ d-link,dgs-1210-10p|\
+ d-link,dgs-1210-16|\
+ d-link,dgs-1210-20|\
+ d-link,dgs-1210-26|\
+ d-link,dgs-1210-28|\
+ d-link,dgs-1210-28mp-f|\
+ d-link,dgs-1210-28p-f|\
+ d-link,dgs-1210-52|\
+ engenius,ews2910p-v1|\
+ engenius,ews2910p-v3|\
+ hasivo,s1100w-8xgt-se|\
+ inaba,aml2-17gp|\
+ iodata,bsh-g24mb|\
+ linksys,lgs310c|\
+ linksys,lgs328c|\
+ linksys,lgs352c|\
+ netgear,gs108t-v3|\
+ netgear,gs110tpp-v1|\
+ netgear,gs110tup-v1|\
+ netgear,gs308t-v1|\
+ netgear,gs310tp-v1|\
+ netgear,gs750e|\
+ panasonic,m16eg-pn28160k|\
+ panasonic,m24eg-pn28240k|\
+ panasonic,m48eg-pn28480k|\
+ panasonic,m8eg-pn28080k|\
+ vimin,vm-s100-0800ms|\
+ zyxel,gs1900-10hp-a1|\
+ zyxel,gs1900-16-a1|\
+ zyxel,gs1900-24-a1|\
+ zyxel,gs1900-24-b1|\
+ zyxel,gs1900-24e-a1|\
+ zyxel,gs1900-24ep-a1|\
+ zyxel,gs1900-24hp-a1|\
+ zyxel,gs1900-24hp-b1|\
+ zyxel,gs1900-48-a1|\
+ zyxel,gs1900-8-a1|\
+ zyxel,gs1900-8-b1|\
+ zyxel,gs1900-8hp-a1|\
+ zyxel,gs1900-8hp-b1|\
+ zyxel,gs1920-24hp-v1|\
+ zyxel,xgs1210-12-a1|\
+ zyxel,xgs1210-12-b1|\
+ zyxel,xgs1250-12-a1|\
+ zyxel,xgs1250-12-b1)
lan_mac=$(mtd_get_mac_ascii u-boot-env2 mac_start)
lan_mac_end=$(mtd_get_mac_ascii u-boot-env2 mac_end)
label_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
More information about the lede-commits
mailing list