Browse Source

qoriq: 02_network fix sweth globbing logic

This prevents invalid configuration of non-existent sweth devices.

Signed-off-by: Thibaut VARÈNE <[email protected]>
Thibaut VARÈNE 3 years ago
parent
commit
5fdbae463c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      target/linux/qoriq/base-files/etc/board.d/02_network

+ 1 - 1
target/linux/qoriq/base-files/etc/board.d/02_network

@@ -21,7 +21,7 @@ watchguard,firebox-m300)
 
 	sweth_mac_offset=0x186d
 
-	for sweth in /sys/class/net/sweth*; do
+	for sweth in $(find /sys/class/net/ -name 'sweth*' -print); do
 		device="$(basename "$sweth")"
 		mac="$(mtd_get_mac_text wg_cfg0 "$sweth_mac_offset")"
 		switchports="$switchports $device"