projects
/
15.05
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[ar71xx]: add support for the NC-LINK SMART-300
[15.05/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-c5 |\
17
archer-c7 |\
18
dir-505-a1 |\
19
gl-inet |\
20
jwap003 |\
21
pb42 |\
22
pb44 |\
23
rb-433 |\
24
rb-433u |\
25
rb-435g |\
26
rb-450 |\
27
rb-450g |\
28
routerstation |\
29
routerstation-pro |\
30
smart-300 |\
31
tl-mr3420-v2 |\
32
tl-wdr4900-v2 |\
33
tl-wr1043nd-v2 |\
34
tl-wr710n |\
35
tl-wr720n-v3 |\
36
tl-wr841n-v8 |\
37
tl-wr842n-v2 |\
38
wnr2000-v3 |\
39
wnr2200 |\
40
wnr612-v2 |\
41
wpe72)
42
ifname=eth1
43
;;
44
*)
45
ifname=eth0
46
;;
47
esac
48
}
49
50
boot_hook_add preinit_main set_preinit_iface
51
52
53