brcm63xx: move preinit ifname detection to the preinit script
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / base-files / lib / preinit / 05_init_interfaces_brcm63xx
1 #!/bin/sh
2
3 . /lib/brcm63xx.sh
4
5 set_preinit_iface() {
6 case "$(brcm63xx_board_name)" in
7 a4001n |\
8 a4001n1 |\
9 ar-5381u |\
10 ar-5387un |\
11 bcm963281tan |\
12 bcm96328avng |\
13 cpva642 |\
14 ct536_ct5621 |\
15 cvg834g |\
16 dgnd3700v1_dgnd3800b |\
17 dsl-2640b-b |\
18 dsl-274xb-c |\
19 dsl-275xb-d |\
20 fast2504n |\
21 fast2704v2 |\
22 hg553 |\
23 hg556a_* |\
24 hg520 |\
25 neufbox6 |\
26 p870hw-51a_v2 |\
27 rta770bw |\
28 rta770w |\
29 spw303v |\
30 spw500v |\
31 v2110 |\
32 vr-3025un |\
33 vr-3025u |\
34 wap-5813n)
35 ifname=eth0
36 ;;
37 bcm96348gw |\
38 bcm96348gw-11 |\
39 gw6000 |\
40 gw6200)
41 ifname=eth1
42 ;;
43 esac
44 }
45
46 boot_hook_add preinit_main set_preinit_iface