3 reorder_layerscape_interfaces
() {
4 if [ ! -f /tmp
/sysinfo
/board_name
]; then
5 echo "No board name found, not doing reorder_layerscape_interfaces"
9 board
=$
(cat /tmp
/sysinfo
/board_name
)
11 "traverse,ls1043v" | \
14 # Reorder ethernet interfaces to match the physical order
15 ip link
set eth2 name fm1-mac3
16 ip link
set eth4 name eth2
17 ip link
set eth3 name fm1-mac4
18 ip link
set eth5 name eth3
19 ip link
set fm1-mac3 name eth4
20 ip link
set fm1-mac4 name eth5
23 echo "Unknown board $board"
28 boot_hook_add preinit_main reorder_layerscape_interfaces