treewide: drop shebang from non-executable target files
[openwrt/openwrt.git] / target / linux / apm821xx / base-files / lib / preinit / 05_set_iface_mac_apm821xx
1 preinit_set_mac_address() {
2 . /lib/functions.sh
3
4 case $(board_name) in
5 meraki,mr24|\
6 meraki,mx60)
7 mac_lan=$(mtd_get_mac_binary_ubi board-config 0x66)
8 [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
9 ;;
10 esac
11 }
12
13 boot_hook_add preinit_main preinit_set_mac_address