You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
343 B
Plaintext
20 lines
343 B
Plaintext
. /lib/functions.sh
|
|
|
|
mt7621_bringup_dsa_master() {
|
|
local board=$(board_name)
|
|
local masterif
|
|
|
|
case "$board" in
|
|
ubnt,edgerouter-x|\
|
|
ubnt,edgerouter-x-sfp)
|
|
masterif="dsa"
|
|
;;
|
|
*)
|
|
masterif="eth0"
|
|
;;
|
|
esac
|
|
|
|
ip link set $masterif up
|
|
}
|
|
|
|
boot_hook_add preinit_main mt7621_bringup_dsa_master |