Parcourir la source

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21644
Signed-off-by: Hauke Mehrtens <[email protected]>
Jan Hoffmann il y a 2 semaines
Parent
commit
f27f3e7f23
1 fichiers modifiés avec 3 ajouts et 6 suppressions
  1. 3 6
      target/linux/realtek/base-files/etc/board.d/02_network

+ 3 - 6
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)
 		;;