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@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/21644
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Jan Hoffmann 2026-01-28 18:14:34 +01:00 committed by Hauke Mehrtens
parent 6a028b3978
commit f27f3e7f23

View file

@ -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)
;;