rockchip: station-p2: reorder eth

This commit is contained in:
huangjf 2022-08-05 15:17:16 +08:00 committed by coolsnowwolf
parent 797a067e82
commit 3264f70ca0

View File

@ -0,0 +1,13 @@
. /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