ramips: update MAC address configuration for Buffalo WSR-1166DHP
[openwrt/staging/wigyori.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 02_network
index 8a9a0af7b01002a9a2709ce39a73cac64e47f205..15aa9aefcca89436bd9262c77b4f975fa4bf51b1 100644 (file)
@@ -147,9 +147,9 @@ ramips_setup_macs()
                lan_mac=$label_mac
                ;;
        buffalo,wsr-1166dhp)
-               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
                ;;
        dlink,dir-860l-b1)
                lan_mac=$(mtd_get_mac_ascii factory lanmac)