summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Hoffmann2026-01-28 17:14:34 +0000
committerHauke Mehrtens2026-02-10 00:39:52 +0000
commitf27f3e7f233aa869935015219cb57d1377b646c2 (patch)
treebfc86d2ffc99186492f4554322b3d6a2d868ecf7
parent6a028b39782039d98db88ec5bb4ce27b1e992e52 (diff)
downloadopenwrt-f27f3e7f233aa869935015219cb57d1377b646c2.tar.gz
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>
-rw-r--r--target/linux/realtek/base-files/etc/board.d/02_network9
1 files 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)
;;