projects
/
openwrt
/
staging
/
chunkeey.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
target: replace remaining occurrences of ifconfig with ip
[openwrt/staging/chunkeey.git]
/
target
/
linux
/
ramips
/
mt7621
/
base-files
/
lib
/
preinit
/
07_mt7621_bringup_dsa_master
1
. /lib/functions.sh
2
3
mt7621_bringup_dsa_master() {
4
local board=$(board_name)
5
local masterif
6
7
case "$board" in
8
ubnt,edgerouter-x|\
9
ubnt,edgerouter-x-sfp)
10
masterif="dsa"
11
;;
12
*)
13
masterif="eth0"
14
;;
15
esac
16
17
ip link set $masterif up
18
}
19
20
boot_hook_add preinit_main mt7621_bringup_dsa_master