Revert "ramips: fix read mac for jdcloud re-sp-01b again"

No longer required since commit 3410ad2f40 ("base-files: enable
 get_mac_ascii() to handle redundant strings").

This reverts commit 6e7537a049.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2025-06-22 21:37:44 +08:00
parent 3e5adc5c2a
commit d133666643
2 changed files with 2 additions and 2 deletions
@@ -287,7 +287,7 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
jdcloud,re-sp-01b)
lan_mac=$(macaddr_canonicalize "$(strings "$(find_mtd_part config)" | sed -n 's/^'"mac"'=//p' | head -n1)")
lan_mac=$(mtd_get_mac_ascii config mac)
wan_mac=$lan_mac
label_mac=$lan_mac
;;
@@ -134,7 +134,7 @@ case "$board" in
macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress
;;
jdcloud,re-sp-01b)
addr=$(macaddr_canonicalize "$(strings "$(find_mtd_part config)" | sed -n 's/^'"mac"'=//p' | head -n1)")
addr=$(mtd_get_mac_ascii config mac)
[ "$PHYNBR" = "0" ] && echo $addr > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "1" ] && macaddr_add $addr 0x800000 > /sys${DEVPATH}/macaddress
;;