[openwrt/openwrt] realtek: combine identical cases in 02_network

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 9 16:40:26 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f27f3e7f233aa869935015219cb57d1377b646c2

commit f27f3e7f233aa869935015219cb57d1377b646c2
Author: Jan Hoffmann <jan at 3e8.eu>
AuthorDate: Wed Jan 28 18:14:34 2026 +0100

    realtek: combine identical cases in 02_network
    
    The MAC address assignment for XikeStor SKS8300-8T and SKS8300-12E2T2X
    is semantically identical to the first case, so let's combine them.
    
    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>
---
 target/linux/realtek/base-files/etc/board.d/02_network | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

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 a50a08771d..32b41da0a9 100644
--- a/target/linux/realtek/base-files/etc/board.d/02_network
+++ b/target/linux/realtek/base-files/etc/board.d/02_network
@@ -55,7 +55,9 @@ realtek_setup_macs()
 	tplink,sg2008p-v1|\
 	tplink,sg2210p-v3|\
 	tplink,sg2452p-v4|\
-	tplink,t1600g-28ts-v3)
+	tplink,t1600g-28ts-v3|\
+	xikestor,sks8300-8t|\
+	xikestor,sks8300-12e2t2x)
 		label_mac=$(get_mac_label)
 		lan_mac="$label_mac"
 		;;
@@ -89,11 +91,6 @@ realtek_setup_macs()
 		lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
 		[ -z "$lan_mac" ] || [ "$lan_mac" = "00:e0:4c:00:00:00" ] && lan_mac=$(macaddr_random)
 		;;
-	xikestor,sks8300-8t|\
-	xikestor,sks8300-12e2t2x)
-		lan_mac="$(get_mac_label)"
-		label_mac="$lan_mac"
-		;;
 	xikestor,sks8300-8x)
 		lan_mac=$(mtd_get_mac_binary board-info 0x1f1)
 		;;




More information about the lede-commits mailing list