ar71xx: add user-space support for GL.iNet v1
[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 ap83 |\
16 archer-c7 |\
17 dir-505-a1 |\
18 gl-inet |\
19 jwap003 |\
20 pb42 |\
21 pb44 |\
22 rb-433 |\
23 rb-433u |\
24 rb-435g |\
25 rb-450 |\
26 rb-450g |\
27 routerstation |\
28 routerstation-pro |\
29 tl-mr3420-v2 |\
30 tl-wdr4900-v2 |\
31 tl-wr1043nd-v2 |\
32 tl-wr710n |\
33 tl-wr720n-v3 |\
34 tl-wr841n-v8 |\
35 tl-wr842n-v2 |\
36 wnr2000-v3 |\
37 wnr2200 |\
38 wnr612-v2 |\
39 wpe72)
40 ifname=eth1
41 ;;
42 *)
43 ifname=eth0
44 ;;
45 esac
46 }
47
48 boot_hook_add preinit_main set_preinit_iface
49
50
51