projects
/
openwrt
/
staging
/
robimarko.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mediatek: fix failsafe ethernet for NWA50AX Pro
[openwrt/staging/robimarko.git]
/
target
/
linux
/
mediatek
/
base-files
/
lib
/
preinit
/
05_set_preinit_iface
1
set_preinit_iface() {
2
case $(board_name) in
3
smartrg,sdg-8622|\
4
smartrg,sdg-8632)
5
ip link set lan up
6
ifname=lan
7
;;
8
glinet,gl-mt3000)
9
ip link set eth1 up
10
ifname=eth1
11
;;
12
ubnt,unifi-6-lr|\
13
zyxel,nwa50ax-pro)
14
ip link set eth0 up
15
ifname=eth0
16
;;
17
*)
18
ip link set eth0 up
19
ifname=lan1
20
;;
21
esac
22
}
23
24
boot_hook_add preinit_main set_preinit_iface
25