ramips: update MAC address configuration for Buffalo WCR-1166DS
[openwrt/openwrt.git] / target / linux / ramips / mt76x8 / base-files / etc / board.d / 02_network
index ab068ce1504dff454c48d8cab4f77f2dfd7a8ecb..00fb88aa3cae4f8e48633f068876a403b345a548 100644 (file)
@@ -177,9 +177,9 @@ ramips_setup_macs()
 
        case $board in
        buffalo,wcr-1166ds)
-               local index="$(find_mtd_index "board_data")"
-               wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)"
+               wan_mac=$(mtd_get_mac_ascii board_data "mac")
                lan_mac=$wan_mac
+               label_mac=$wan_mac
                ;;
        cudy,wr1000|\
        hilink,hlk-7628n|\