treewide: convert MAC address location offsets to hexadecimal
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / preinit / 05_set_iface_mac_ar71xx
index 7d3e82813d9848a0700c492384edb5d5957e23f7..b0aa150817982958bc8c002aeaaaf281196585bd 100644 (file)
@@ -24,7 +24,7 @@ preinit_set_mac_address() {
        case $(board_name) in
        c-55|\
        c-60)
-               mac_lan=$(mtd_get_mac_binary art 0)
+               mac_lan=$(mtd_get_mac_binary art 0x0)
                [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
                ;;
        dir-615-c1|\
@@ -36,19 +36,19 @@ preinit_set_mac_address() {
                ;;
        mr18|\
        z1)
-               mac_lan=$(mtd_get_mac_binary_ubi board-config 102)
+               mac_lan=$(mtd_get_mac_binary_ubi board-config 0x66)
                [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
                ;;
        r6100)
-               mac_lan=$(mtd_get_mac_binary caldata 0)
+               mac_lan=$(mtd_get_mac_binary caldata 0x0)
                [ -n "$mac_lan" ] && ifconfig eth1 hw ether "$mac_lan"
-               mac_wan=$(mtd_get_mac_binary caldata 6)
+               mac_wan=$(mtd_get_mac_binary caldata 0x6)
                [ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan"
                ;;
        rambutan)
-               mac_lan=$(mtd_get_mac_binary art 0)
+               mac_lan=$(mtd_get_mac_binary art 0x0)
                [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
-               mac_wan=$(mtd_get_mac_binary art 6)
+               mac_wan=$(mtd_get_mac_binary art 0x6)
                [ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan"
                ;;
        wrt160nl)