d214e9b859df60e42a0694d730253b7a6155e3f1
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / preinit / 05_set_preinit_iface_ar71xx
1 #!/bin/sh
2
3 #
4 # Copyright (C) 2009 OpenWrt.org
5 #
6
7 . /lib/ar71xx.sh
8
9 set_preinit_iface() {
10 case $(ar71xx_board_name) in
11 alfa-ap96 |\
12 alfa-nx |\
13 ap135-020 |\
14 ap136-020 |\
15 ap147-010 |\
16 ap83 |\
17 archer-c5 |\
18 archer-c7 |\
19 dir-505-a1 |\
20 gl-inet |\
21 jwap003 |\
22 pb42 |\
23 pb44 |\
24 rb-433 |\
25 rb-433u |\
26 rb-435g |\
27 rb-450 |\
28 rb-450g |\
29 routerstation |\
30 routerstation-pro |\
31 smart-300 |\
32 tl-mr3420-v2 |\
33 tl-wdr4900-v2 |\
34 tl-wr1043nd-v2 |\
35 tl-wr710n |\
36 tl-wr720n-v3 |\
37 tl-wr841n-v8 |\
38 tl-wr842n-v2 |\
39 wnr2000-v3 |\
40 wnr2200 |\
41 wnr612-v2 |\
42 wnr1000-v2 |\
43 wpe72)
44 ifname=eth1
45 ;;
46 *)
47 ifname=eth0
48 ;;
49 esac
50 }
51
52 boot_hook_add preinit_main set_preinit_iface
53
54
55