ar71xx: add support for Netgear WPN824N
[openwrt/svn-archive/archive.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 tl-wr941nd-v6 |\
40 wnr2000-v3 |\
41 wnr2200 |\
42 wnr612-v2 |\
43 wnr1000-v2 |\
44 wpn824n |\
45 wpe72)
46 ifname=eth1
47 ;;
48 *)
49 ifname=eth0
50 ;;
51 esac
52 }
53
54 boot_hook_add preinit_main set_preinit_iface
55
56
57