treewide: convert MAC address location offsets to hexadecimal
[openwrt/openwrt.git] / target / linux / apm821xx / base-files / lib / preinit / 05_set_iface_mac_apm821xx
1 #!/bin/sh
2
3 preinit_set_mac_address() {
4 . /lib/functions.sh
5
6 case $(board_name) in
7 meraki,mr24|\
8 meraki,mx60)
9 mac_lan=$(mtd_get_mac_binary_ubi board-config 0x66)
10 [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
11 ;;
12 esac
13 }
14
15 boot_hook_add preinit_main preinit_set_mac_address