diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-03-16 11:53:06 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-03-16 11:53:06 +0000 |
commit | 020e5733f961aeb795337a084411d52c46ce27d5 (patch) | |
tree | bf481082a68fa58cb44bf08709c4b3ae08176841 /target/linux/brcm63xx/base-files/lib/preinit | |
parent | 90da308e3bbb6e5900e8f6eabbeff16add227d94 (diff) | |
download | upstream-020e5733f961aeb795337a084411d52c46ce27d5.tar.gz upstream-020e5733f961aeb795337a084411d52c46ce27d5.tar.bz2 upstream-020e5733f961aeb795337a084411d52c46ce27d5.zip |
brcm63xx: move preinit ifname detection to the preinit script
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44839
Diffstat (limited to 'target/linux/brcm63xx/base-files/lib/preinit')
-rw-r--r-- | target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx index 1de59b79c0..a8bf6c621e 100644 --- a/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx +++ b/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx @@ -1,7 +1,46 @@ #!/bin/sh +. /lib/brcm63xx.sh + set_preinit_iface() { - ifconfig $ifname 0.0.0.0 up + case "$(brcm63xx_board_name)" in + a4001n |\ + a4001n1 |\ + ar-5381u |\ + ar-5387un |\ + bcm963281tan |\ + bcm96328avng |\ + cpva642 |\ + ct536_ct5621 |\ + cvg834g |\ + dgnd3700v1_dgnd3800b |\ + dsl-2640b-b |\ + dsl-274xb-c |\ + dsl-275xb-d |\ + fast2504n |\ + fast2704v2 |\ + hg553 |\ + hg556a_* |\ + hg520 |\ + neufbox6 |\ + p870hw-51a_v2 |\ + rta770bw |\ + rta770w |\ + spw303v |\ + spw500v |\ + v2110 |\ + vr-3025un |\ + vr-3025u |\ + wap-5813n) + ifname=eth0 + ;; + bcm96348gw |\ + bcm96348gw-11 |\ + gw6000 |\ + gw6200) + ifname=eth1 + ;; + esac } boot_hook_add preinit_main set_preinit_iface |