rockchip: use alternative CID path
[openwrt/openwrt.git] / target / linux / rockchip / armv8 / base-files / etc / board.d / 02_network
index 99f55513aa8e8b5a4a65407627a16b4eddb26c94..f5e88cc14820bd7f2bb825b54ad6b124a5d5360a 100644 (file)
@@ -18,7 +18,7 @@ rockchip_setup_interfaces()
 
 nanopi_r2s_generate_mac()
 {
-       local sd_hash=$(sha256sum /sys/devices/platform/ff500000.dwmmc/mmc_host/mmc0/mmc0:*/cid)
+       local sd_hash=$(sha256sum /sys/class/block/mmcblk0/device/cid)
        local mac_base=$(macaddr_canonicalize "$(echo "${sd_hash}" | dd bs=1 count=12 2>/dev/null)")
        echo "$(macaddr_unsetbit_mc "$(macaddr_setbit_la "${mac_base}")")"
 }