ar71xx: add support for GL.iNet GL-AR750
[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-ar750|\
21 gl-inet|\
22 jwap003|\
23 pb42|\
24 pb44|\
25 rb-433|\
26 rb-433u|\
27 rb-435g|\
28 rb-450|\
29 rb-450g|\
30 routerstation|\
31 routerstation-pro|\
32 smart-300|\
33 tl-mr3420-v2|\
34 tl-wdr4900-v2|\
35 tl-wr1043nd-v2|\
36 tl-wr710n|\
37 tl-wr720n-v3|\
38 tl-wr841n-v8|\
39 tl-wr842n-v2|\
40 tl-wr940n-v4|\
41 tl-wr941nd-v6|\
42 wnr1000-v2|\
43 wnr2000-v3|\
44 wnr2200|\
45 wnr612-v2|\
46 wpe72|\
47 wpn824n)
48 ifname=eth1
49 ;;
50 *)
51 ifname=eth0
52 ;;
53 esac
54 }
55
56 boot_hook_add preinit_main set_preinit_iface