projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ar71xx: fix failsafe acces on several devices
[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
jwap003 |\
19
pb42 |\
20
pb44 |\
21
rb-433 |\
22
rb-433u |\
23
rb-435g |\
24
rb-450 |\
25
rb-450g |\
26
routerstation |\
27
routerstation-pro |\
28
tl-mr3420-v2 |\
29
tl-wdr4900-v2 |\
30
tl-wr1043nd-v2 |\
31
tl-wr710n |\
32
tl-wr720n-v3 |\
33
tl-wr841n-v8 |\
34
tl-wr842n-v2 |\
35
wnr2000-v3 |\
36
wnr2200 |\
37
wnr612-v2 |\
38
wpe72)
39
ifname=eth1
40
;;
41
*)
42
ifname=eth0
43
;;
44
esac
45
}
46
47
boot_hook_add preinit_main set_preinit_iface
48
49
50