treewide: drop shebang from non-executable target files
[openwrt/staging/stintel.git] / target / linux / ath79 / generic / base-files / lib / preinit / 10_fix_eth_mac.sh
1 . /lib/functions.sh
2
3 preinit_set_mac_address() {
4 case $(board_name) in
5 avm,fritz1750e|\
6 avm,fritz450e)
7 ip link set dev eth0 address $(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
8 ;;
9 dlink,dap-2695-a1)
10 ip link set dev eth0 address $(mtd_get_mac_ascii bdcfg "lanmac")
11 ip link set dev eth1 address $(mtd_get_mac_ascii bdcfg "wanmac")
12 ;;
13 enterasys,ws-ap3705i)
14 ip link set dev eth0 address $(mtd_get_mac_ascii u-boot-env0 ethaddr)
15 ;;
16 siemens,ws-ap3610)
17 ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
18 ;;
19 esac
20 }
21
22 boot_hook_add preinit_main preinit_set_mac_address