[PATCH 5/5] qoriq: m300 switchport interface assignment order.

Evan Jobling evan.jobling at mslsc.com.au
Tue Oct 15 03:13:50 PDT 2024


before interface assignments in /etc/config/network
were out of order.

Now order is correct.

i.e. before:
config interface 'wan'

config interface 'wan6'

config interface 'eth2'

config interface 'eth7'

config interface 'eth5'

config interface 'eth3'

config interface 'eth6'

config interface 'eth4'

after:
config interface 'wan'

config interface 'wan6'

config interface 'eth2'

config interface 'eth3'

config interface 'eth4'

config interface 'eth5'

config interface 'eth6'

config interface 'eth7'

Signed-off-by: Evan Jobling <evan.jobling at mslsc.com.au>
---
 target/linux/qoriq/base-files/etc/board.d/02_network | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/qoriq/base-files/etc/board.d/02_network b/target/linux/qoriq/base-files/etc/board.d/02_network
index b1f3b2c0ee..9edb9ded7a 100644
--- a/target/linux/qoriq/base-files/etc/board.d/02_network
+++ b/target/linux/qoriq/base-files/etc/board.d/02_network
@@ -29,7 +29,7 @@ watchguard,firebox-m300)
         ucidef_set_network_device_label "sw0p4" "eth7"
 
 
-	for eth in $(find /sys/class/net/ -name 'eth[3-7]' -print); do
+	for eth in "eth3" "eth4" "eth5" "eth6" "eth7"; do
 		device="$(basename "$eth")"
 		wg_set_opt_interface "$device" "${device#eth}"
 	done
-- 
2.39.5




More information about the openwrt-devel mailing list