ece961e7ce1a131a6ff32190ab3088bdec040cc8
[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 set_preinit_iface() {
8 . /lib/functions.sh
9
10 case $(board_name) in
11 alfa-ap96|\
12 alfa-nx|\
13 ap135-020|\
14 ap136-020|\
15 ap147-010|\
16 archer-c5|\
17 archer-c7|\
18 bhr-4grv2|\
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 tl-wr940n-v4|\
40 tl-wr941nd-v6|\
41 wnr1000-v2|\
42 wnr2000-v3|\
43 wnr2200|\
44 wnr612-v2|\
45 wpe72|\
46 wpn824n)
47 ifname=eth1
48 ;;
49 *)
50 ifname=eth0
51 ;;
52 esac
53 }
54
55 boot_hook_add preinit_main set_preinit_iface