mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
rockchip: reorder r66s/p2 eth ports
This commit is contained in:
parent
0b6bc3b05b
commit
601c972128
@ -10,17 +10,19 @@ rockchip_setup_interfaces()
|
|||||||
case "$board" in
|
case "$board" in
|
||||||
embedfire,doornet1|\
|
embedfire,doornet1|\
|
||||||
embedfire,doornet2|\
|
embedfire,doornet2|\
|
||||||
fastrhino,r66s|\
|
|
||||||
friendlyarm,nanopi-r2c|\
|
friendlyarm,nanopi-r2c|\
|
||||||
friendlyarm,nanopi-r2s|\
|
friendlyarm,nanopi-r2s|\
|
||||||
friendlyarm,nanopi-r4s|\
|
friendlyarm,nanopi-r4s|\
|
||||||
friendlyarm,nanopi-r4se|\
|
friendlyarm,nanopi-r4se|\
|
||||||
sharevdi,guangmiao-g4c|\
|
sharevdi,guangmiao-g4c|\
|
||||||
xunlong,orangepi-r1-plus|\
|
xunlong,orangepi-r1-plus|\
|
||||||
xunlong,orangepi-r1-plus-lts|\
|
xunlong,orangepi-r1-plus-lts)
|
||||||
firefly,rk3568-roc-pc)
|
|
||||||
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
|
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
|
||||||
;;
|
;;
|
||||||
|
fastrhino,r66s|\
|
||||||
|
firefly,rk3568-roc-pc)
|
||||||
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
||||||
|
;;
|
||||||
friendlyelec,nanopi-r5s)
|
friendlyelec,nanopi-r5s)
|
||||||
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
|
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
|
||||||
;;
|
;;
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
. /lib/functions.sh
|
|
||||||
|
|
||||||
preinit_reorder_eth() {
|
|
||||||
case $(board_name) in
|
|
||||||
firefly,rk3568-roc-pc)
|
|
||||||
ip link set eth0 name ethtmp
|
|
||||||
ip link set eth1 name eth0
|
|
||||||
ip link set ethtmp name eth1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
boot_hook_add preinit_main preinit_reorder_eth
|
|
Loading…
Reference in New Issue
Block a user